From 1c779195b546f11f707c9dbece8d0d7c9ba6b182 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sun, 9 Feb 2020 19:32:52 -0800 Subject: [PATCH] Capabilities: improve output of `cap whohas` --- PBot/Capabilities.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PBot/Capabilities.pm b/PBot/Capabilities.pm index 936da9df..bd26939e 100644 --- a/PBot/Capabilities.pm +++ b/PBot/Capabilities.pm @@ -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; }