[cvslog] (2008-04-30 01:07:47 UTC) Module eggdrop1.6: Change committed!

cvslog cvs at tsss.org
Tue Apr 29 19:07:48 CST 2008


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.6
Commit time: 2008-04-30 01:07:47 UTC
Commited by: Jeff Fisher <guppy at techmonkeys.org>

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

Log message:

minor raw logging fix

---------------------- diff included ----------------------
Index: eggdrop1.6/doc/UPDATES1.6
diff -u eggdrop1.6/doc/UPDATES1.6:1.645 eggdrop1.6/doc/UPDATES1.6:1.646
--- eggdrop1.6/doc/UPDATES1.6:1.645	Tue Apr 29 12:29:44 2008
+++ eggdrop1.6/doc/UPDATES1.6	Tue Apr 29 20:07:36 2008
@@ -1,4 +1,4 @@
-$Id: UPDATES1.6,v 1.645 2008-04-29 17:29:44 guppy Exp $
+$Id: UPDATES1.6,v 1.646 2008-04-30 01:07:36 guppy Exp $
 
 Eggdrop Changes (since v1.6.0)
     _____________________________________________________________________
@@ -12,6 +12,9 @@
 
 
   1.6.20:
+    - minor raw logging fix when the server sends the command
+    * Found by: simple - Patch by: guppy
+
     - tcl_maskhost could crash the bot
     * Patch by: FireEgl
 
Index: eggdrop1.6/src/mod/server.mod/servmsg.c
diff -u eggdrop1.6/src/mod/server.mod/servmsg.c:1.96 eggdrop1.6/src/mod/server.mod/servmsg.c:1.97
--- eggdrop1.6/src/mod/server.mod/servmsg.c:1.96	Mon Apr 28 18:54:24 2008
+++ eggdrop1.6/src/mod/server.mod/servmsg.c	Tue Apr 29 20:07:37 2008
@@ -1,7 +1,7 @@
 /*
  * servmsg.c -- part of server.mod
  *
- * $Id: servmsg.c,v 1.96 2008-04-28 23:54:24 guppy Exp $
+ * $Id: servmsg.c,v 1.97 2008-04-30 01:07:37 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -1088,8 +1088,12 @@
   }
   code = newsplit(&msg);
   if (raw_log && ((strcmp(code, "PRIVMSG") && strcmp(code, "NOTICE")) ||
-      !match_ignore(from)))
-    putlog(LOG_RAW, "*", "[@] %s %s %s", from, code, msg);
+      !match_ignore(from))) {
+    if (!strcmp(from, ""))
+      putlog(LOG_RAW, "*", "[@] %s %s", code, msg);
+    else
+      putlog(LOG_RAW, "*", "[@] %s %s %s", from, code, msg);
+  }
   /* This has GOT to go into the raw binding table, * merely because this
    * is less effecient.
    */
Index: eggdrop1.6/src/patch.h
diff -u eggdrop1.6/src/patch.h:1.1195 eggdrop1.6/src/patch.h:1.1196
--- eggdrop1.6/src/patch.h:1.1195	Tue Apr 29 12:29:44 2008
+++ eggdrop1.6/src/patch.h	Tue Apr 29 20:07:37 2008
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.1195 2008-04-29 17:29:44 guppy Exp $
+ * $Id: patch.h,v 1.1196 2008-04-30 01:07:37 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,12 +41,12 @@
  *
  *
  */
-patch("1209489899");            /* current unixtime */
+patch("1209517605");            /* current unixtime */
 /*
  *
  *
  */
-patch("maskhostfix");
+patch("rawlogfix");
 /*
  *
  *
----------------------- End of diff -----------------------



More information about the Changes mailing list