]> git.donarmstrong.com Git - infobot.git/commitdiff
moved nick lock checking to lock only. detected by irq@OPN
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Fri, 9 Feb 2001 13:23:32 +0000 (13:23 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Fri, 9 Feb 2001 13:23:32 +0000 (13:23 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@369 c11ca15a-4712-0410-83d8-924469b57eb5

src/Process.pl

index 69fdba7242aa4791112e60b8603a1179868e955e..e9766cde7eef4764bd31bdb6a2a13e4406d018f2 100644 (file)
@@ -424,19 +424,19 @@ sub FactoidStuff {
            return;
        }
 
-       # strongly requested by #debian on 19991028. -xk
-       if (1 and $faqtoid !~ /^\Q$who\E$/i and &IsFlag("o") ne "o") {
-           &msg($who,"sorry, locking cannot be used since it can be abused unneccesarily.");
-           &status("Replace 1 with 0 in Process.pl#~324 for locking support.");
-           return;
-       }
-
        if (&getFactoid($faqtoid) eq "") {
            &msg($who, "factoid \002$faqtoid\002 does not exist");
            return;
        }
 
        if ($function eq "lock") {
+           # strongly requested by #debian on 19991028. -xk
+           if (1 and $faqtoid !~ /^\Q$who\E$/i and &IsFlag("o") ne "o") {
+               &msg($who,"sorry, locking cannot be used since it can be abused unneccesarily.");
+               &status("Replace 1 with 0 in Process.pl#~324 for locking support.");
+               return;
+           }
+
            &CmdLock($faqtoid);
        } else {
            &CmdUnLock($faqtoid);