]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Factoids/Update.pl
* Fix previous patches missing "and" statements
[infobot.git] / src / Factoids / Update.pl
index 08c6826ed7bb767c2bf6e0c9aa8576ce05f14821..ace4d5e7a67aafb1ff2047c86ddfe229f6f74e97 100644 (file)
@@ -63,9 +63,12 @@ sub update {
             return 1;
 
         # If they have +M but they didnt create the factoid
-        } elsif (&IsFlag('M') eq 'M' and $who !~ /^\Q$created_by\E$/i &IsFlag('m') ne 'm' &IsFlag('o') ne 'o') {
-            &performReply("factoid '$lhs' is not yours to modify.");
-            return 1;
+        } elsif (&IsFlag('M') eq 'M' and
+            $who !~ /^\Q$created_by\E$/i and
+            &IsFlag('m') ne 'm' and
+            &IsFlag('o') ne 'o') {
+                &performReply("factoid '$lhs' is not yours to modify.");
+                return 1;
         }
     }