summaryrefslogtreecommitdiffstats
path: root/modules/util.pl
diff options
context:
space:
mode:
authorLibravatarWilliam Heimbigner <william.heimbigner@gmail.com>2007-11-25 21:33:40 +0000
committerLibravatarWilliam Heimbigner <william.heimbigner@gmail.com>2007-11-25 21:33:40 +0000
commit0293b9d684ce2f89a1850b7a0d4819bdd1c947ef (patch)
treec7ea8fc9bd40b46797ba690ebe7b4066c178518d /modules/util.pl
parent917638dfdf31e26ae9115dabb5c2fe528866c549 (diff)
better logging, better flood detection, command ignoring
Diffstat (limited to 'modules/util.pl')
-rw-r--r--modules/util.pl11
1 files changed, 11 insertions, 0 deletions
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]);