summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/bs_act.c2
-rw-r--r--src/core/bs_say.c2
-rw-r--r--src/core/os_set.c6
3 files changed, 5 insertions, 5 deletions
diff --git a/src/core/bs_act.c b/src/core/bs_act.c
index 13ef27a23..c8616170a 100644
--- a/src/core/bs_act.c
+++ b/src/core/bs_act.c
@@ -50,7 +50,7 @@ class CommandBSAct : public Command
ircdproto->SendAction(ci->bi, ci->name, "%s", params[1].c_str());
ci->bi->lastmsg = time(NULL);
- if (LogBot && LogChannel && logchan && !debug && findchan(LogChannel))
+ if (LogBot && LogChannel && LogChan && !debug && findchan(LogChannel))
ircdproto->SendPrivmsg(ci->bi, LogChannel, "ACT %s %s %s", u->nick, ci->name, params[1].c_str());
return MOD_CONT;
}
diff --git a/src/core/bs_say.c b/src/core/bs_say.c
index 577891cd5..dbca41518 100644
--- a/src/core/bs_say.c
+++ b/src/core/bs_say.c
@@ -57,7 +57,7 @@ class CommandBSSay : public Command
ircdproto->SendPrivmsg(ci->bi, ci->name, "%s", text);
ci->bi->lastmsg = time(NULL);
- if (LogBot && LogChannel && logchan && !debug && findchan(LogChannel))
+ if (LogBot && LogChannel && LogChan && !debug && findchan(LogChannel))
ircdproto->SendPrivmsg(ci->bi, LogChannel, "SAY %s %s %s", u->nick, ci->name, text);
return MOD_CONT;
}
diff --git a/src/core/os_set.c b/src/core/os_set.c
index c74c275c9..a48ea96f9 100644
--- a/src/core/os_set.c
+++ b/src/core/os_set.c
@@ -26,7 +26,7 @@ class CommandOSSet : public Command
notice_lang(s_OperServ, u, index, "IGNORE");
index = readonly ? OPER_SET_LIST_OPTION_ON : OPER_SET_LIST_OPTION_OFF;
notice_lang(s_OperServ, u, index, "READONLY");
- index = logchan ? OPER_SET_LIST_OPTION_ON : OPER_SET_LIST_OPTION_OFF;
+ index = LogChan ? OPER_SET_LIST_OPTION_ON : OPER_SET_LIST_OPTION_OFF;
notice_lang(s_OperServ, u, index, "LOGCHAN");
index = debug ? OPER_SET_LIST_OPTION_ON : OPER_SET_LIST_OPTION_OFF;
notice_lang(s_OperServ, u, index, "DEBUG");
@@ -116,7 +116,7 @@ class CommandOSSet : public Command
c = findchan(LogChannel);
ircdproto->SendJoin(findbot(s_GlobalNoticer), LogChannel, c ? c->creation_time : time(NULL));
}
- logchan = 1;
+ LogChan = true;
alog("Now sending log messages to %s", LogChannel);
notice_lang(s_OperServ, u, OPER_SET_LOGCHAN_ON, LogChannel);
}
@@ -125,7 +125,7 @@ class CommandOSSet : public Command
alog("No longer sending log messages to a channel");
if (ircd->join2msg)
ircdproto->SendPart(findbot(s_GlobalNoticer), LogChannel, NULL);
- logchan = 0;
+ LogChan = false;
notice_lang(s_OperServ, u, OPER_SET_LOGCHAN_OFF);
}
else