diff --git a/PBot/NickList.pm b/PBot/NickList.pm index 76d534d8..406b3fb1 100644 --- a/PBot/NickList.pm +++ b/PBot/NickList.pm @@ -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; }