mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 11:42:35 +01:00
Whoops, return proper nick-casing for exact-match is_present_similar() result
This commit is contained in:
parent
81e106285e
commit
2001fc1908
@ -119,7 +119,7 @@ sub is_present_similar {
|
||||
$nick = lc $nick;
|
||||
|
||||
return 0 if not exists $self->{nicklist}->{$channel};
|
||||
return $nick if $self->is_present($channel, $nick);
|
||||
return $self->{nicklist}->{$channel}->{$nick}->{nick} if $self->is_present($channel, $nick);
|
||||
|
||||
my $percentage = $self->{pbot}->{registry}->get_value('interpreter', 'nick_similarity');
|
||||
$percentage = 0.20 if not defined $percentage;
|
||||
|
Loading…
Reference in New Issue
Block a user