mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 19:22:40 +01:00
Check for value of key instead of existence in loggedin()
This commit is contained in:
parent
be2e568066
commit
c78dbbb911
@ -169,7 +169,7 @@ sub loggedin {
|
||||
|
||||
my $admin = $self->find_admin($channel, $hostmask);
|
||||
|
||||
if(defined $admin && exists $admin->{loggedin}) {
|
||||
if(defined $admin && $admin->{loggedin}) {
|
||||
return $admin;
|
||||
} else {
|
||||
return undef;
|
||||
|
Loading…
Reference in New Issue
Block a user