3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-25 04:02:37 +01:00

Whoops, return proper nick-casing for exact-match is_present_similar() result

This commit is contained in:
Pragmatic Software 2016-09-25 00:24:49 -07:00
parent 81e106285e
commit 2001fc1908

View File

@ -119,7 +119,7 @@ sub is_present_similar {
$nick = lc $nick; $nick = lc $nick;
return 0 if not exists $self->{nicklist}->{$channel}; 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'); my $percentage = $self->{pbot}->{registry}->get_value('interpreter', 'nick_similarity');
$percentage = 0.20 if not defined $percentage; $percentage = 0.20 if not defined $percentage;