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
1 changed files with 3 additions and 2 deletions

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;
}