From 0293b9d684ce2f89a1850b7a0d4819bdd1c947ef Mon Sep 17 00:00:00 2001 From: William Heimbigner Date: Sun, 25 Nov 2007 21:33:40 +0000 Subject: better logging, better flood detection, command ignoring --- modules/util.pl | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'modules/util.pl') diff --git a/modules/util.pl b/modules/util.pl index 4fe63ee..5a32e11 100644 --- a/modules/util.pl +++ b/modules/util.pl @@ -86,6 +86,17 @@ sub getLink return $chan; } +sub speak +{ + my ($module, $chan) = @_; + $chan = lc $chan; + if ( defined(cs($module, $chan)->{silence}) && (cs($module, $chan)->{silence} eq "yes") ) { + return 0; + } else { + return 1; + } +} + #this item is a stub, dur sub hostip { return gethostbyname($_[0]); -- cgit v1.2.3