git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1002
c11ca15a-4712-0410-83d8-
924469b57eb5
- if ($mask !~ /^$mask{nuh}$/) {
- &pSReply("error: mask ($mask) is not a real hostmask.");
- return;
- }
-
my $count = scalar keys %{ $users{$user}{HOSTS} };
if ($state) { # add.
my $count = scalar keys %{ $users{$user}{HOSTS} };
if ($state) { # add.
+ if ($mask !~ /^$mask{nuh}$/) {
+ &pSReply("error: mask ($mask) is not a real hostmask.");
+ return;
+ }
+
if (exists $users{$user}{HOSTS}{$mask}) {
&pSReply("mask $mask already exists.");
return;
if (exists $users{$user}{HOSTS}{$mask}) {
&pSReply("mask $mask already exists.");
return;