From: timriker Date: Tue, 6 Mar 2007 20:14:36 +0000 (+0000) Subject: channel silent flag X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=fe0ac374ce32322b15f6ef355932c3b7a2d8d627;p=infobot.git channel silent flag git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1300 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/blootbot/src/IRC/Irc.pl b/blootbot/src/IRC/Irc.pl index b121fdf..dceae89 100644 --- a/blootbot/src/IRC/Irc.pl +++ b/blootbot/src/IRC/Irc.pl @@ -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)) {