]> git.donarmstrong.com Git - infobot.git/commitdiff
silent action() too
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Wed, 7 Mar 2007 17:37:40 +0000 (17:37 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Wed, 7 Mar 2007 17:37:40 +0000 (17:37 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1304 c11ca15a-4712-0410-83d8-924469b57eb5

src/IRC/Irc.pl

index c8cf8d74b27e64404d1cb1aa144ee6f3bdad69f4..be711050e6822759ef13edf0f2754b955af0b3ed 100644 (file)
@@ -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);