3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-24 11:42:35 +01:00

AntiTwitter: use more restrictive nick-similarity value

This commit is contained in:
Pragmatic Software 2017-05-20 23:45:30 -07:00
parent 373ebc03b3
commit a219f3d9a7

View File

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