Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2007-03-17 14:17:38 UTC

Modified files:
  Tag: u2_10_12_branch
     ircd/ircd.c ChangeLog

Log message:

Warn when using -x with a non-DEBUGMODE ircd.

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.156 ircu2.10/ChangeLog:1.710.2.157
--- ircu2.10/ChangeLog:1.710.2.156      Sat Mar 17 07:15:00 2007
+++ ircu2.10/ChangeLog  Sat Mar 17 07:17:28 2007
@@ -1,5 +1,10 @@
 2007-03-16  Michael Poole <[EMAIL PROTECTED]>
 
+       * ircd/ircd.c (parse_command_line): Emit a warning if using -x
+       when DEBUGMODE is disabled.
+
+2007-03-16  Michael Poole <[EMAIL PROTECTED]>
+
        * ircd/s_conf.c (find_conf_exact): Treat maxlinks == 0 as being
        unlimited here, to match attach_conf()'s behavior.
 
Index: ircu2.10/ircd/ircd.c
diff -u ircu2.10/ircd/ircd.c:1.91.2.4 ircu2.10/ircd/ircd.c:1.91.2.5
--- ircu2.10/ircd/ircd.c:1.91.2.4       Sun Jan 14 19:08:23 2007
+++ ircu2.10/ircd/ircd.c        Sat Mar 17 07:17:27 2007
@@ -19,7 +19,7 @@
  */
 /** @file
  * @brief Entry point and other initialization functions for the daemon.
- * @version $Id: ircd.c,v 1.91.2.4 2007/01/15 03:08:23 entrope Exp $
+ * @version $Id: ircd.c,v 1.91.2.5 2007/03/17 14:17:27 entrope Exp $
  */
 #include "config.h"
 
@@ -508,6 +508,9 @@
        debuglevel = 0;
       debugmode = optarg;
       thisServer.bootopt |= BOOT_DEBUG;
+#ifndef DEBUGMODE
+      printf("WARNING: DEBUGMODE disabled; -x has no effect.\n");
+#endif
       break;
 
     default:
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to