mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 11:42:35 +01:00
AntiTwitter: @
symbol must now be adjacent to nick
This commit is contained in:
parent
758ea3f028
commit
d2203db285
@ -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}++;
|
||||
|
Loading…
Reference in New Issue
Block a user