3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-25 04:02:37 +01:00

Capabilities: improve output of cap whohas

This commit is contained in:
Pragmatic Software 2020-02-09 19:32:52 -08:00
parent 0848c5752f
commit 1c779195b5

View File

@ -190,7 +190,8 @@ sub capcmd {
} }
if (@matches) { if (@matches) {
$result .= '; ' if $matched; $result .= '; ' if $matched;
$result .= $users->{$channel}->{_name} eq '.*' ? '' : "$users->{$channel}->{_name}: "; my $global = $matched ? 'global: ' : '';
$result .= $users->{$channel}->{_name} eq '.*' ? $global : "$users->{$channel}->{_name}: ";
$result .= join ', ', @matches; $result .= join ', ', @matches;
$matched = 1; $matched = 1;
} }