From cdfc33d986263d1d5df31318b2b231b6959fcfe1 Mon Sep 17 00:00:00 2001 From: "Robin Burchell w00t@inspircd.org" Date: Thu, 2 Oct 2008 23:46:41 +0000 Subject: [PATCH] Fix os_set. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1392 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/os_set.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/os_set.c b/src/core/os_set.c index a8091bf95..543bcb569 100644 --- a/src/core/os_set.c +++ b/src/core/os_set.c @@ -187,7 +187,7 @@ int do_set(User * u) if (LogChannel && (stricmp(setting, "on") == 0)) { if (ircd->join2msg) { c = findchan(LogChannel); - ircdproto->SendJoin(s_GlobalNoticer, LogChannel, c ? c->creation_time : time(NULL)); + ircdproto->SendJoin(findbot(s_GlobalNoticer), LogChannel, c ? c->creation_time : time(NULL)); } logchan = 1; alog("Now sending log messages to %s", LogChannel); @@ -195,7 +195,7 @@ int do_set(User * u) } else if (LogChannel && (stricmp(setting, "off") == 0)) { alog("No longer sending log messages to a channel"); if (ircd->join2msg) { - ircdproto->SendPart(s_GlobalNoticer, LogChannel, NULL); + ircdproto->SendPart(findbot(s_GlobalNoticer), LogChannel, NULL); } logchan = 0; notice_lang(s_OperServ, u, OPER_SET_LOGCHAN_OFF);