3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-26 22:09:26 +01:00

NickList is_present() now returns canonical nick (proper typographical case)

This commit is contained in:
Pragmatic Software 2015-07-01 15:20:28 -07:00
parent a00a9dfc6b
commit e026b9ac42

View File

@ -85,9 +85,10 @@ sub is_present {
my ($self, $channel, $nick) = @_;
$channel = lc $channel;
$nick = lc $nick;
if (exists $self->{nicklist}->{$channel} and exists $self->{nicklist}->{$channel}->{lc $nick}) {
return 1;
if (exists $self->{nicklist}->{$channel} and exists $self->{nicklist}->{$channel}->{$nick}) {
return $self->{nicklist}->{$channel}->{$nick}->{nick};
} else {
return 0;
}