From: timriker Date: Wed, 7 Mar 2007 17:20:57 +0000 (+0000) Subject: silent msg() too X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=f3600e0fca3e1a73a5fbae241936e7fe4c1f49d2;p=infobot.git silent msg() too git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1302 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/IRC/Irc.pl b/src/IRC/Irc.pl index dceae89..c8cf8d7 100644 --- a/src/IRC/Irc.pl +++ b/src/IRC/Irc.pl @@ -270,6 +270,12 @@ sub msg { return; } + # some say() end up here (eg +help) + if (&getChanConf('silent', $nick)) { + &DEBUG("say: silent in $nick, not saying $msg"); + return; + } + &status(">$nick< $msg"); return unless (&whatInterface() =~ /IRC/);