Users: fix minor warning

This commit is contained in:
Pragmatic Software 2021-07-16 11:56:23 -07:00
parent b4ae4f8ea0
commit f5232879e3
1 changed files with 1 additions and 1 deletions

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) {