3
0
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:
Pragmatic Software 2016-12-16 19:20:57 -08:00
parent be2e568066
commit c78dbbb911

View File

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