mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-26 13:59:47 +01:00
Users: fix minor warning
This commit is contained in:
parent
b4ae4f8ea0
commit
f5232879e3
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user