3
0
mirror of https://github.com/pragma-/pbot.git synced 2025-02-18 14:30:40 +01:00

Capabilities: use correct channel name

This commit is contained in:
Pragmatic Software 2020-02-06 02:24:43 -08:00
parent 62e2207527
commit c0b401c281

View File

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