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:
parent
0848c5752f
commit
1c779195b5
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user