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
1 changed files with 2 additions and 1 deletions

View File

@ -190,7 +190,8 @@ sub capcmd {
}
if (@matches) {
$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;
$matched = 1;
}