[eggheads-patches] PATCH: queuednewline.patch

Fabian Knittel fknittel at gmx.de
Wed Oct 20 13:38:28 CST 1999


[ queuednewline.patch ]

This tiny patch makes the debug message "msg already
queued. skipping:" behave nicer, i.e. it removes the
additional \n at the end.

Priority: IMPORTANT *g*

Fabian
-------------- next part --------------
diff -urN eggdrop1.3~/doc/UPDATES1.3 eggdrop1.3/doc/UPDATES1.3
--- eggdrop1.3~/doc/UPDATES1.3	Wed Oct 20 18:14:04 1999
+++ eggdrop1.3/doc/UPDATES1.3	Wed Oct 20 18:13:14 1999
@@ -4,6 +4,7 @@
 
 1.3.29
 Foundby   Fixedby   What....
+	  Fabian    removed newline from "msg already queued" message
 James	  Fabian    infinite loop in tcl_do_masklist()
           Tothwolf  updated doc/BUG-REPORT
 	  Fabian    bot was deop'ing itsself in got_op()
diff -urN eggdrop1.3~/src/mod/server.mod/server.c eggdrop1.3/src/mod/server.mod/server.c
--- eggdrop1.3~/src/mod/server.mod/server.c	Wed Oct 20 15:57:49 1999
+++ eggdrop1.3/src/mod/server.mod/server.c	Wed Oct 20 18:12:28 1999
@@ -241,7 +241,9 @@
 	tqq = tq->next;
 	if (!strcasecmp(tq->msg, buf)) {
 	  if (!double_warned) {
-	    debug1("msg already queued. skipping: %s",buf);
+	    if (buf[len - 1] == '\n')
+	      buf[len - 1] = 0;
+	    debug1("msg already queued. skipping: %s", buf);
 	    double_warned = 1;
 	  }
 	  return;


More information about the Patches mailing list