From e3eb698f2730809debacea3b41ceb81370f2370e Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Thu, 9 Jul 2015 23:24:39 -0700 Subject: [PATCH] Properly show/hide star for logged in admins in `list admins` --- PBot/FactoidCommands.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PBot/FactoidCommands.pm b/PBot/FactoidCommands.pm index f6d6bb78..39956908 100644 --- a/PBot/FactoidCommands.pm +++ b/PBot/FactoidCommands.pm @@ -321,7 +321,7 @@ sub list { } foreach my $hostmask (sort keys %{ $self->{pbot}->{admins}->{admins}->hash->{$channel} }) { $text .= $sep; - $text .= "*" if exists $self->{pbot}->{admins}->{admins}->hash->{$channel}->{$hostmask}->{loggedin}; + $text .= "*" if $self->{pbot}->{admins}->{admins}->hash->{$channel}->{$hostmask}->{loggedin}; $text .= $self->{pbot}->{admins}->{admins}->hash->{$channel}->{$hostmask}->{name} . " (" . $self->{pbot}->{admins}->{admins}->hash->{$channel}->{$hostmask}->{level} . ")"; $sep = "; "; }