1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 22:56:38 +02:00

Fix os_set.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1392 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Robin Burchell w00t@inspircd.org
2008-10-02 23:46:41 +00:00
parent 811da740a6
commit cdfc33d986
+2 -2
View File
@@ -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);