From d2203db285b0aa7d263246787db891e4c13d3108 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Mon, 30 Dec 2019 01:44:02 -0800 Subject: [PATCH] AntiTwitter: `@` symbol must now be adjacent to nick --- Plugins/AntiTwitter.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/AntiTwitter.pm b/Plugins/AntiTwitter.pm index 1a804015..7a9f9e17 100644 --- a/Plugins/AntiTwitter.pm +++ b/Plugins/AntiTwitter.pm @@ -46,7 +46,7 @@ sub on_public { $channel = lc $channel; return 0 if not $self->{pbot}->{chanops}->can_gain_ops($channel); - while ($msg =~ m/\B[@@]\s*([a-z0-9_^{}\-\\\[\]\|]+)/ig) { + while ($msg =~ m/\B[@@]*([a-z0-9_^{}\-\\\[\]\|]+)/ig) { my $n = $1; if ($self->{pbot}->{nicklist}->is_present_similar($channel, $n, 0.05)) { $self->{offenses}->{$channel}->{$nick}->{offenses}++;