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:
parent
a00a9dfc6b
commit
e026b9ac42
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user