AntiTwitter nicks now case-insensitive... whoops!

This commit is contained in:
Pragmatic Software 2017-08-01 21:37:00 -07:00
parent 85d74f53b1
commit 4f628b4cd7
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ sub on_public {
$channel = lc $channel;
return 0 if not $self->{pbot}->{chanops}->can_gain_ops($channel);
while ($msg =~ m/[@]\s*([a-z0-9_^{}\-\\\[\]\|]+)/g) {
while ($msg =~ m/[@]\s*([a-z0-9_^{}\-\\\[\]\|]+)/ig) {
my $n = $1;
if ($self->{pbot}->{nicklist}->is_present_similar($channel, $n, 0.05)) {
$self->{offenses}->{$channel}->{$nick}->{offenses}++;