From 62891fea01374e373b24ee869d537475d7e6540c Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Tue, 17 Oct 2017 22:05:00 -0700 Subject: [PATCH] Allow things like user@host in AntiTwitter --- PBot/Plugins/AntiTwitter.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PBot/Plugins/AntiTwitter.pm b/PBot/Plugins/AntiTwitter.pm index b2770146..4227f68c 100644 --- a/PBot/Plugins/AntiTwitter.pm +++ b/PBot/Plugins/AntiTwitter.pm @@ -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_^{}\-\\\[\]\|]+)/ig) { + while ($msg =~ m/\B[@@]\s*([a-z0-9_^{}\-\\\[\]\|]+)/ig) { my $n = $1; if ($self->{pbot}->{nicklist}->is_present_similar($channel, $n, 0.05)) { $self->{offenses}->{$channel}->{$nick}->{offenses}++;