From: djmcgrath Date: Wed, 16 Apr 2008 17:40:35 +0000 (+0000) Subject: * Minor fix to some long lines perl comlained about X-Git-Url: https://git.donarmstrong.com/?p=infobot.git;a=commitdiff_plain;h=6954ef86c97a9ced5fc6237bdff12e97f0c6e1e5 * Minor fix to some long lines perl comlained about git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1664 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/Factoids/Core.pl b/src/Factoids/Core.pl index dbf2d46..bf8cfcd 100644 --- a/src/Factoids/Core.pl +++ b/src/Factoids/Core.pl @@ -395,10 +395,7 @@ sub FactoidStuff { return; # 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') { + } elsif (&IsFlag('M') eq 'M' and $who !~ /^\Q$created_by\E$/i &IsFlag('m') ne 'm' &IsFlag('o') ne 'o') { &performReply("factoid '$from' is not yours to modify."); return; } @@ -448,10 +445,7 @@ sub FactoidStuff { return; # 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') { + } elsif (&IsFlag('M') eq 'M' and $who !~ /^\Q$created_by\E$/i &IsFlag('m') ne 'm' &IsFlag('o') ne 'o') { &performReply("factoid '$faqtoid' is not yours to modify."); return; } diff --git a/src/Factoids/Update.pl b/src/Factoids/Update.pl index 75714da..08c6826 100644 --- a/src/Factoids/Update.pl +++ b/src/Factoids/Update.pl @@ -63,10 +63,7 @@ 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') { + } 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; }