diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/bs_act.c | 5 | ||||
-rw-r--r-- | src/core/bs_say.c | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/core/bs_act.c b/src/core/bs_act.c index e342c7617..1f92b7e42 100644 --- a/src/core/bs_act.c +++ b/src/core/bs_act.c @@ -82,10 +82,9 @@ int do_act(User * u) notice_lang(s_BotServ, u, ACCESS_DENIED); else { strnrepl(text, BUFSIZE, "\001", ""); - anope_cmd_privmsg(ci->bi->nick, ci->name, "%cACTION %s %c", 1, - text, 1); + anope_cmd_action(ci->bi->nick, ci->name, "%s", text); ci->bi->lastmsg = time(NULL); - if (logchan && LogBot) + if (LogBot && LogChannel && logchan && !debug && findchan(LogChannel)) anope_cmd_privmsg(ci->bi->nick, LogChannel, "ACT %s %s %s", u->nick, ci->name, text); } diff --git a/src/core/bs_say.c b/src/core/bs_say.c index 3f088b4f2..508efe320 100644 --- a/src/core/bs_say.c +++ b/src/core/bs_say.c @@ -86,7 +86,7 @@ int do_say(User * u) if (text[0] != '\001') { anope_cmd_privmsg(ci->bi->nick, ci->name, "%s", text); ci->bi->lastmsg = time(NULL); - if (logchan && LogBot) + if (LogBot && LogChannel && logchan && !debug && findchan(LogChannel)) anope_cmd_privmsg(ci->bi->nick, LogChannel, "SAY %s %s %s", u->nick, ci->name, text); } else { |