From f5232879e31ac80e60d0685c2a19ebc48ca66222 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Fri, 16 Jul 2021 11:56:23 -0700 Subject: [PATCH] Users: fix minor warning --- lib/PBot/Users.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PBot/Users.pm b/lib/PBot/Users.pm index bb0674e2..54587c5f 100644 --- a/lib/PBot/Users.pm +++ b/lib/PBot/Users.pm @@ -206,7 +206,7 @@ sub cmd_useradd { if (not defined $name or not defined $hostmasks) { return "Usage: useradd [channels [capabilities [password]]]"; } - $channels = 'global' if $channels !~ /^#/; + $channels = 'global' if !$channels or $channels !~ /^#/; my $u; foreach my $channel (sort split /\s*,\s*/, lc $channels) {