]> git.donarmstrong.com Git - infobot.git/commitdiff
channel silent flag
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 6 Mar 2007 20:14:36 +0000 (20:14 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 6 Mar 2007 20:14:36 +0000 (20:14 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1300 c11ca15a-4712-0410-83d8-924469b57eb5

blootbot/src/IRC/Irc.pl

index b121fdf7c5e7e0ca74b9e13868480e488eb3ca05..dceae898b2eb53f866f650d2f78291e464f963bc 100644 (file)
@@ -212,6 +212,11 @@ sub say {
        return;
     }
 
+    if (&getChanConf('silent', $talkchannel)) {
+       &DEBUG("say: silent in $talkchannel, not saying $msg");
+       return;
+    }
+
     if ( $postprocess ) {
        undef $postprocess;
     } elsif ($postprocess = &getChanConf('postprocess', $talkchannel)) {