From: timriker Date: Wed, 7 Mar 2007 17:37:40 +0000 (+0000) Subject: silent action() too X-Git-Url: https://git.donarmstrong.com/?p=infobot.git;a=commitdiff_plain;h=c9383954232c41e012ec96efbc079d3605586db2 silent action() too git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1304 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/blootbot/src/IRC/Irc.pl b/blootbot/src/IRC/Irc.pl index c8cf8d7..be71105 100644 --- a/blootbot/src/IRC/Irc.pl +++ b/blootbot/src/IRC/Irc.pl @@ -272,7 +272,7 @@ sub msg { # some say() end up here (eg +help) if (&getChanConf('silent', $nick)) { - &DEBUG("say: silent in $nick, not saying $msg"); + &DEBUG("msg: silent in $nick, not saying $msg"); return; } @@ -312,6 +312,11 @@ sub action { return; } + if (&getChanConf('silent', $target)) { + &DEBUG("action: silent in $target, not doing $txt"); + return; + } + if (length $txt > 480) { &status("action: txt too long; truncating."); chop($txt) while (length $txt > 480);