mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-25 04:02:37 +01:00
Allow things like user@host in AntiTwitter
This commit is contained in:
parent
ae157908ce
commit
62891fea01
@ -44,7 +44,7 @@ sub on_public {
|
|||||||
$channel = lc $channel;
|
$channel = lc $channel;
|
||||||
return 0 if not $self->{pbot}->{chanops}->can_gain_ops($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;
|
my $n = $1;
|
||||||
if ($self->{pbot}->{nicklist}->is_present_similar($channel, $n, 0.05)) {
|
if ($self->{pbot}->{nicklist}->is_present_similar($channel, $n, 0.05)) {
|
||||||
$self->{offenses}->{$channel}->{$nick}->{offenses}++;
|
$self->{offenses}->{$channel}->{$nick}->{offenses}++;
|
||||||
|
Loading…
Reference in New Issue
Block a user