]> git.donarmstrong.com Git - infobot.git/commitdiff
allow -host <nick> <invalid mask>
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 13 Jul 2004 18:43:24 +0000 (18:43 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 13 Jul 2004 18:43:24 +0000 (18:43 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1002 c11ca15a-4712-0410-83d8-924469b57eb5

src/Modules/UserDCC.pl

index a9ed3e2b7b04d8d8540701e8571a80454753370b..22c244809f582f1def712a2a62a139ebf36ff0d0 100644 (file)
@@ -965,14 +965,14 @@ sub userDCC {
            return;
        }
 
-       if ($mask !~ /^$mask{nuh}$/) {
-           &pSReply("error: mask ($mask) is not a real hostmask.");
-           return;
-       }
-
        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;