mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 11:42:35 +01:00
Capabilities: improve output of cap whohas
This commit is contained in:
parent
0848c5752f
commit
1c779195b5
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user