summaryrefslogtreecommitdiffstats
path: root/lib/ASM/Util.pm
diff options
context:
space:
mode:
authorLibravatarJanik Kleinhoff <ilbelkyr@shalture.org>2016-03-01 18:44:47 +0000
committerLibravatarJanik Kleinhoff <ilbelkyr@shalture.org>2016-03-01 18:47:48 +0000
commita354d46b5b9c4080abda9a248f36c294ee6d5d12 (patch)
tree381dad98b5c41f016a70c6222e3f814643f5e5c0 /lib/ASM/Util.pm
parent6f0f5a7f1ad7409c92b36feeaa543457fc321f83 (diff)
ASM::Util::isFloodedPhraseOK(): lc $chan
Should hopefully fix the #Reddit issue. There ought to be a tidy way of doing this without lc strewn all over the code ... but I'm lazy
Diffstat (limited to 'lib/ASM/Util.pm')
-rw-r--r--lib/ASM/Util.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ASM/Util.pm b/lib/ASM/Util.pm
index 8e3fe8c..0984a28 100644
--- a/lib/ASM/Util.pm
+++ b/lib/ASM/Util.pm
@@ -134,6 +134,8 @@ sub mayAlert {
sub isFloodedPhraseOK {
my ($module, $chan, $text) = @_;
+ $chan = lc $chan;
+
return undef unless exists $::channels->{channel}{$chan}{floodedphraseok};
my $exempt_regex = $::channels->{channel}{$chan}{floodedphraseok};