3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-23 04:19:27 +01:00

Users: fix minor warning

This commit is contained in:
Pragmatic Software 2021-07-16 11:56:23 -07:00
parent b4ae4f8ea0
commit f5232879e3

View File

@ -206,7 +206,7 @@ sub cmd_useradd {
if (not defined $name or not defined $hostmasks) { return "Usage: useradd <username> <hostmasks> [channels [capabilities [password]]]"; }
$channels = 'global' if $channels !~ /^#/;
$channels = 'global' if !$channels or $channels !~ /^#/;
my $u;
foreach my $channel (sort split /\s*,\s*/, lc $channels) {