[cvslog] (2006-08-21 17:40:18 UTC) Module eggdrop1.6: Change committed!

cvslog cvs at tsss.org
Mon Aug 21 11:40:18 CST 2006


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.6
Commit time: 2006-08-21 17:40:18 UTC
Commited by: Will Buckner <wcc at techmonkeys.org>

Modified files:
     doc/UPDATES1.6 src/patch.h src/mod/server.mod/server.c

Log message:

- Complete raw traffic wasn't getting logged in some cases; only the raw
  command itself was. Fixed.
* Patch by: mrBuG

---------------------- diff included ----------------------
Index: eggdrop1.6/doc/UPDATES1.6
diff -u eggdrop1.6/doc/UPDATES1.6:1.630 eggdrop1.6/doc/UPDATES1.6:1.631
--- eggdrop1.6/doc/UPDATES1.6:1.630	Sun Jul  9 17:14:07 2006
+++ eggdrop1.6/doc/UPDATES1.6	Mon Aug 21 12:40:08 2006
@@ -1,4 +1,4 @@
-$Id: UPDATES1.6,v 1.630 2006-07-09 22:14:07 wcc Exp $
+$Id: UPDATES1.6,v 1.631 2006-08-21 17:40:08 wcc Exp $
 
 Eggdrop Changes (since v1.6.0)
     _____________________________________________________________________
@@ -11,13 +11,19 @@
     ftp://ftp.eggheads.org/pub/eggdrop/UPDATES/
 
 
-  1.6.18 (09 July 2006)
-    * Look for Tcl in /lib64 and /usr/lib64.
+  1.6.19:
+    - Complete raw traffic wasn't getting logged in some cases; only the raw
+      command itself was. Fixed.
+    * Patch by: mrBuG
+
+
+  1.6.18 (09 July 2006):
+    - Look for Tcl in /lib64 and /usr/lib64.
     * Patch by: Kuja
 
     + RC1 released on April 3rd, 2006.
 
-    * Fixed a type conversion problem in snprintf.c causing Eggdrop to not
+    - Fixed a type conversion problem in snprintf.c causing Eggdrop to not
       compile on OSF1.
     * Found by: Joker - Patch by: Wcc
 
Index: eggdrop1.6/src/mod/server.mod/server.c
diff -u eggdrop1.6/src/mod/server.mod/server.c:1.124 eggdrop1.6/src/mod/server.mod/server.c:1.125
--- eggdrop1.6/src/mod/server.mod/server.c:1.124	Mon Mar 27 20:35:51 2006
+++ eggdrop1.6/src/mod/server.mod/server.c	Mon Aug 21 12:40:08 2006
@@ -2,7 +2,7 @@
  * server.c -- part of server.mod
  *   basic irc server support
  *
- * $Id: server.c,v 1.124 2006-03-28 02:35:51 wcc Exp $
+ * $Id: server.c,v 1.125 2006-08-21 17:40:08 wcc Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -178,10 +178,10 @@
         continue;
       }
       write_to_server(modeq.head->msg, modeq.head->len);
-      modeq.tot--;
-      last_time += calc_penalty(modeq.head->msg);
       if (raw_log)
         putlog(LOG_SRVOUT, "*", "[m->] %s", modeq.head->msg);
+      modeq.tot--;
+      last_time += calc_penalty(modeq.head->msg);
       q = modeq.head->next;
       nfree(modeq.head->msg);
       nfree(modeq.head);
@@ -207,10 +207,10 @@
       return;
 
     write_to_server(mq.head->msg, mq.head->len);
-    mq.tot--;
-    last_time += calc_penalty(mq.head->msg);
     if (raw_log)
       putlog(LOG_SRVOUT, "*", "[s->] %s", mq.head->msg);
+    mq.tot--;
+    last_time += calc_penalty(mq.head->msg);
     q = mq.head->next;
     nfree(mq.head->msg);
     nfree(mq.head);
@@ -233,10 +233,10 @@
     return;
 
   write_to_server(hq.head->msg, hq.head->len);
-  hq.tot--;
-  last_time += calc_penalty(hq.head->msg);
   if (raw_log)
     putlog(LOG_SRVOUT, "*", "[h->] %s", hq.head->msg);
+  hq.tot--;
+  last_time += calc_penalty(hq.head->msg);
   q = hq.head->next;
   nfree(hq.head->msg);
   nfree(hq.head);
@@ -483,14 +483,6 @@
     simple_sprintf(tosend, "%s %s %s", cmd, victims, msg);
     len = strlen(tosend);
     write_to_server(tosend, len);
-    m = h->head->next;
-    nfree(h->head->msg);
-    nfree(h->head);
-    h->head = m;
-    if (!h->head)
-      h->last = 0;
-    h->tot--;
-    last_time += calc_penalty(tosend);
     if (raw_log) {
       switch (which) {
       case DP_MODE:
@@ -504,6 +496,14 @@
         break;
       }
     }
+    m = h->head->next;
+    nfree(h->head->msg);
+    nfree(h->head);
+    h->head = m;
+    if (!h->head)
+      h->last = 0;
+    h->tot--;
+    last_time += calc_penalty(tosend);
     return 1;
   }
   return 0;
@@ -746,8 +746,6 @@
   egg_snprintf(newmsg, sizeof newmsg, "KICK %s %s %s", chan, newnicks + 1,
                reason);
   write_to_server(newmsg, strlen(newmsg));
-  h->tot--;
-  last_time += calc_penalty(newmsg);
   if (raw_log) {
     switch (which) {
     case DP_MODE:
@@ -762,6 +760,8 @@
     }
     debug3("Changed: %d, kick-method: %d, nr: %d", changed, kick_method, nr);
   }
+  h->tot--;
+  last_time += calc_penalty(newmsg);
   m = h->head->next;
   nfree(h->head->msg);
   nfree(h->head);
Index: eggdrop1.6/src/patch.h
diff -u eggdrop1.6/src/patch.h:1.1182 eggdrop1.6/src/patch.h:1.1183
--- eggdrop1.6/src/patch.h:1.1182	Sun May 28 20:56:08 2006
+++ eggdrop1.6/src/patch.h	Mon Aug 21 12:40:08 2006
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.1182 2006-05-29 01:56:08 wcc Exp $
+ * $Id: patch.h,v 1.1183 2006-08-21 17:40:08 wcc Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,12 +41,12 @@
  *
  *
  */
-patch("1148871473");            /* current unixtime */
+patch("1156182021");            /* current unixtime */
 /*
  *
  *
  */
-patch("config.sub.guess");
+patch("raw-log");
 /*
  *
  *
----------------------- End of diff -----------------------



More information about the Changes mailing list