From c706c29b99cd278b56cd9236faa56f354a181344 Mon Sep 17 00:00:00 2001 From: timriker Date: Wed, 7 Mar 2007 17:37:40 +0000 Subject: [PATCH] silent action() too git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1304 c11ca15a-4712-0410-83d8-924469b57eb5 --- src/IRC/Irc.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/IRC/Irc.pl b/src/IRC/Irc.pl index c8cf8d7..be71105 100644 --- a/src/IRC/Irc.pl +++ b/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); -- 2.39.5