summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/log.c b/src/log.c
index 52dda1baf..dd2e2440a 100644
--- a/src/log.c
+++ b/src/log.c
@@ -177,7 +177,7 @@ void alog(const char *fmt, ...)
fprintf(stderr, "%s %s\n", buf, str);
}
if (LogChannel && logchan && !debug && findchan(LogChannel)) {
- ircdproto->SendPrivmsg(s_GlobalNoticer, LogChannel, "%s", str);
+ ircdproto->SendPrivmsg(findbot(s_GlobalNoticer), LogChannel, "%s", str);
}
errno = errno_save;
}