From 42b72b522fc5ad1d8f777b2960b6553b2bc294cc Mon Sep 17 00:00:00 2001 From: "geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Sat, 26 Jan 2008 10:20:45 +0000 Subject: 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 --- src/init.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src') 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) { -- cgit