summaryrefslogtreecommitdiff
path: root/src/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/log.c b/src/log.c
index 8b5f935bf..5f739bd2c 100644
--- a/src/log.c
+++ b/src/log.c
@@ -176,7 +176,7 @@ void alog(const char *fmt, ...)
if (nofork) {
fprintf(stderr, "%s %s\n", buf, str);
}
- if (LogChannel && logchan && !debug && findchan(LogChannel)) {
+ if (LogChannel && LogChan && !debug && findchan(LogChannel)) {
ircdproto->SendPrivmsg(findbot(s_GlobalNoticer), LogChannel, "%s", str);
}
errno = errno_save;