summaryrefslogtreecommitdiff
path: root/src/init.c
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-10-25 04:12:47 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-10-25 04:12:47 +0000
commit7a429517af09a2240f938a5570f83e4c6b9f9f9f (patch)
tree4f334eb0878f9d9ef1b985566b50e723969e7b84 /src/init.c
parent0e8de37778d82c7909038b8847b92a98aff6f5e7 (diff)
added options:enablelogchannel config file option, which turns on the logchannel on startup. yay!
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2585 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/init.c')
-rw-r--r--src/init.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/init.c b/src/init.c
index 4cd654088..6373f79c7 100644
--- a/src/init.c
+++ b/src/init.c
@@ -245,7 +245,7 @@ static int parse_options(int ac, char **av)
"-logchan: LogChannel must be defined in services.conf\n");
} else { /* LogChannel */
- logchan = 1;
+ LogChan = true;
}
} else if (strcmp(s, "forceload") == 0) {
forceload = 1;
@@ -377,6 +377,10 @@ int init_primary(int ac, char **av)
return -1;
}
+ /* Disable the log channel if its defined in the conf, but not enabled */
+ if (!LogChannel && LogChan)
+ LogChan = false;
+
/* Add IRCD Protocol Module; exit if there are errors */
if (protocol_module_init()) {
return -1;