From: dms Date: Fri, 9 Feb 2001 13:23:32 +0000 (+0000) Subject: moved nick lock checking to lock only. detected by irq@OPN X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=5c9d63dda3e69b7f4080137589720374152a60eb;p=infobot.git moved nick lock checking to lock only. detected by irq@OPN git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@369 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/Process.pl b/src/Process.pl index 69fdba7..e9766cd 100644 --- a/src/Process.pl +++ b/src/Process.pl @@ -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);