mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-25 04:02:37 +01:00
AntiTwitter: use more restrictive nick-similarity value
This commit is contained in:
parent
373ebc03b3
commit
a219f3d9a7
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user