]> git.donarmstrong.com Git - infobot.git/commitdiff
now use "or" instead of "and" operator for "rename".
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Fri, 23 Feb 2001 12:25:20 +0000 (12:25 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Fri, 23 Feb 2001 12:25:20 +0000 (12:25 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@415 c11ca15a-4712-0410-83d8-924469b57eb5

src/Process.pl

index 69711c011c636e7c1c08a72b63aab37acf8203ba..600729defdfcf8f423cb99adb1902574ca845679 100644 (file)
@@ -518,7 +518,8 @@ sub FactoidStuff {
            my $result = &getFactoid($from);
            if (defined $result) {
                my $author = &getFactInfo($from, "created_by");
-               if (&IsFlag("m") and $author =~ /^\Q$who\E\!/i) {
+
+               if (&IsFlag("m") or $author =~ /^\Q$who\E\!/i) {
                    &msg($who, "It's not yours to modify.");
                    return;
                }