summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-02 23:46:41 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-02 23:46:41 +0000
commitcdfc33d986263d1d5df31318b2b231b6959fcfe1 (patch)
tree1dd8a7fb7458a5ca4559fbbe642621189d387675 /src
parent811da740a6ee7c5e37dee2750c48abe1de27e4cb (diff)
Fix os_set.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1392 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/core/os_set.c4
1 files 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);