From b0f9385857803606451dfcb9eff84b7bcdd257b6 Mon Sep 17 00:00:00 2001 From: "geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Sat, 26 Jan 2008 10:26:45 +0000 Subject: BUILD : 1.7.21 (1359) BUGS : 838 NOTES : Fixed various checks for LogBot in bs_say and bs_act git-svn-id: svn://svn.anope.org/anope/trunk@1359 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1074 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/bs_act.c | 5 ++--- src/core/bs_say.c | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src/core') 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 { -- cgit