diff options
author | William Heimbigner <william.heimbigner@gmail.com> | 2016-02-17 11:44:40 -0700 |
---|---|---|
committer | William Heimbigner <william.heimbigner@gmail.com> | 2016-02-17 11:44:40 -0700 |
commit | e12886e3aef086030785f3a47868852404b3a596 (patch) | |
tree | 87bdb6e52b1bdb0a120d5ea26f850ee572c8b81e | |
parent | ff74b7a412dc79c6bcc137b7809b2207bc9ad5f9 (diff) | |
download | antispammeta-e12886e3aef086030785f3a47868852404b3a596.tar.bz2 antispammeta-e12886e3aef086030785f3a47868852404b3a596.tar.xz antispammeta-e12886e3aef086030785f3a47868852404b3a596.tar.zst |
Fix showhilights to be able to check against nicks that were manually added to the config with uppercase letters
-rw-r--r-- | lib/ASM/Commander.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ASM/Commander.pm b/lib/ASM/Commander.pm index b9c8e28..e068194 100644 --- a/lib/ASM/Commander.pm +++ b/lib/ASM/Commander.pm @@ -725,7 +725,8 @@ sub cmd_showhilights { my @channels = (); foreach my $chan (keys(%{$::channels->{channel}})) { foreach my $level (keys(%{$::channels->{channel}->{$chan}->{hilights}})) { - if ( $nick ~~ $::channels->{channel}->{$chan}->{hilights}->{$level}) { + my @nicks = map { lc } @{$::channels->{channel}->{$chan}->{hilights}->{$level}}; + if ( $nick ~~ @nicks) { push @channels, $chan . " ($level)"; } } |