From 931a689d5c62bfd29b130a3efccccfe85b98a8be Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Sat, 17 Mar 2007 14:17:28 +0000 Subject: [PATCH] Warn when using -x with a non-DEBUGMODE ircd. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1776 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 5 +++++ ircd/ircd.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4087c6e..aa8c800 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-03-16 Michael Poole + + * ircd/ircd.c (parse_command_line): Emit a warning if using -x + when DEBUGMODE is disabled. + 2007-03-16 Michael Poole * ircd/s_conf.c (find_conf_exact): Treat maxlinks == 0 as being diff --git a/ircd/ircd.c b/ircd/ircd.c index 006263b..0954a61 100644 --- a/ircd/ircd.c +++ b/ircd/ircd.c @@ -508,6 +508,9 @@ static void parse_command_line(int argc, char** argv) { debuglevel = 0; debugmode = optarg; thisServer.bootopt |= BOOT_DEBUG; +#ifndef DEBUGMODE + printf("WARNING: DEBUGMODE disabled; -x has no effect.\n"); +#endif break; default: -- 2.20.1