Committer  : klmitch
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Commit time: 2008-03-16 02:48:10 UTC

Modified files:
     ChangeLog ircd/ircd.c

Log message:

Author: Kev <[EMAIL PROTECTED]>
Log message:

Change the ERROR messages in pending_exit() into SQUIT messages, which is
arguably what they're supposed to be anyway

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.848 ircu2.10/ChangeLog:1.849
--- ircu2.10/ChangeLog:1.848    Sat Mar 15 19:13:56 2008
+++ ircu2.10/ChangeLog  Sat Mar 15 19:48:00 2008
@@ -1,5 +1,8 @@
 2008-03-15  Kevin L. Mitchell  <[EMAIL PROTECTED]>
 
+       * ircd/ircd.c: you know what, let's just make those SQUIT
+       messages, like they were probably supposed to be in the beginning
+
        * ircd/ircd.c: add a preceding colon in ERROR messages
 
        * doc/example.conf: document 'exempt' port flag
Index: ircu2.10/ircd/ircd.c
diff -u ircu2.10/ircd/ircd.c:1.106 ircu2.10/ircd/ircd.c:1.107
--- ircu2.10/ircd/ircd.c:1.106  Sat Mar 15 19:13:56 2008
+++ ircu2.10/ircd/ircd.c        Sat Mar 15 19:48:00 2008
@@ -19,7 +19,7 @@
  */
 /** @file
  * @brief Entry point and other initialization functions for the daemon.
- * @version $Id: ircd.c,v 1.106 2008/03/16 02:13:56 klmitch Exp $
+ * @version $Id: ircd.c,v 1.107 2008/03/16 02:48:00 klmitch Exp $
  */
 #include "config.h"
 
@@ -146,21 +146,24 @@
     if (pe->who) { /* write notice to log */
       log_write(LS_SYSTEM, level, 0, "%s %s server: %s", pe->who, what,
                pe->message);
-      sendcmdto_serv(&me, CMD_ERROR, 0, ":%s %s server: %s", pe->who, what,
-                    pe->message);
+      sendcmdto_serv(&me, CMD_SQUIT, 0, "%s 0 :%s %s server: %s",
+                    cli_name(&me), pe->who, what, pe->message);
     } else {
       log_write(LS_SYSTEM, level, 0, "Server %s: %s", what, pe->message);
-      sendcmdto_serv(&me, CMD_ERROR, 0, ":Server %s: %s", what, pe->message);
+      sendcmdto_serv(&me, CMD_SQUIT, 0, "%s 0 :Server %s: %s",
+                    cli_name(&me), what, pe->message);
     }
   } else { /* just notify of the restart/termination */
     sendto_lusers("Server %s...", what);
 
     if (pe->who) { /* write notice to log */
       log_write(LS_SYSTEM, level, 0, "%s %s server...", pe->who, what);
-      sendcmdto_serv(&me, CMD_ERROR, 0, ":%s %s server...", pe->who, what);
+      sendcmdto_serv(&me, CMD_SQUIT, 0, "%s 0 :%s %s server...",
+                    cli_name(&me), pe->who, what);
     } else {
       log_write(LS_SYSTEM, level, 0, "Server %s...", what);
-      sendcmdto_serv(&me, CMD_ERROR, 0, ":Server %s...", what);
+      sendcmdto_serv(&me, CMD_SQUIT, 0, "%s 0 :Server %s...",
+                    cli_name(&me), what);
     }
   }
 
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to