From a354d46b5b9c4080abda9a248f36c294ee6d5d12 Mon Sep 17 00:00:00 2001 From: Janik Kleinhoff Date: Tue, 1 Mar 2016 18:44:47 +0000 Subject: 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 --- lib/ASM/Util.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/ASM/Util.pm') 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}; -- cgit v1.2.3