summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2008-01-26 10:20:45 +0000
committergeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2008-01-26 10:20:45 +0000
commit42b72b522fc5ad1d8f777b2960b6553b2bc294cc (patch)
tree59608059769ccb49fdd943c96a1038c300eb83e0 /src
parent1e23c7fdf0817c0d797316e7d7aa741219985ed4 (diff)
BUILD : 1.7.21 (1358) BUGS : 837 NOTES : Added a check for LogChannel when running with -logchan switch
git-svn-id: svn://svn.anope.org/anope/trunk@1358 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1073 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/init.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/init.c b/src/init.c
index 5a7eb5da7..35c4c9f67 100644
--- a/src/init.c
+++ b/src/init.c
@@ -307,7 +307,7 @@ static int parse_options(int ac, char **av)
s = av[i];
if (atoi(s) <= 0) {
fprintf(stderr,
- "-expire: number of seconds must be positive");
+ "-expire: number of seconds must be positive\n");
return -1;
} else
ExpireTimeout = atol(s);
@@ -322,7 +322,13 @@ static int parse_options(int ac, char **av)
} else if (strcmp(s, "nofork") == 0) {
nofork = 1;
} else if (strcmp(s, "logchan") == 0) {
- logchan = 1;
+ if (!LogChannel) {
+ fprintf(stderr,
+ "-logchan: LogChannel must be defined in services.conf\n");
+ } else { /* LogChannel */
+
+ logchan = 1;
+ }
} else if (strcmp(s, "forceload") == 0) {
forceload = 1;
} else if (strcmp(s, "nothird") == 0) {