mirror of
https://github.com/pragma-/pbot.git
synced 2025-02-18 14:30:40 +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) = @_;
|
my ($self, $channel, $nick) = @_;
|
||||||
|
|
||||||
$channel = lc $channel;
|
$channel = lc $channel;
|
||||||
|
$nick = lc $nick;
|
||||||
|
|
||||||
if (exists $self->{nicklist}->{$channel} and exists $self->{nicklist}->{$channel}->{lc $nick}) {
|
if (exists $self->{nicklist}->{$channel} and exists $self->{nicklist}->{$channel}->{$nick}) {
|
||||||
return 1;
|
return $self->{nicklist}->{$channel}->{$nick}->{nick};
|
||||||
} else {
|
} else {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user