diff options
-rw-r--r-- | Changes | 1 | ||||
-rw-r--r-- | src/init.c | 10 | ||||
-rw-r--r-- | version.log | 6 |
3 files changed, 14 insertions, 3 deletions
@@ -10,6 +10,7 @@ Anope Version S V N 01/26 F Various oddities in ChanServ suspend code. [#834] 01/26 F Channel walking for mass modes and restoring topics. [#835] 01/26 F Memory leaks in OperServ CLEARMODES. [#836] +01/26 F Check for LogChannel when running with -logchan option. [#837] Provided by Jan Milants <jan_renee@msn.com> - 2008 01/16 F Server traversion with next_server() failed to list all servers. [#831] 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) { diff --git a/version.log b/version.log index 14cbcfc95..1ac175b8b 100644 --- a/version.log +++ b/version.log @@ -9,10 +9,14 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="21" VERSION_EXTRA="-svn" -VERSION_BUILD="1357" +VERSION_BUILD="1358" # $Log$ # +# BUILD : 1.7.21 (1358) +# BUGS : 837 +# NOTES : Added a check for LogChannel when running with -logchan switch +# # BUILD : 1.7.21 (1357) # BUGS : 836 # NOTES : Fixed memleaks in os_clearmodes |