summaryrefslogtreecommitdiff
path: root/src/init.c
diff options
context:
space:
mode:
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;