From: dms Date: Sun, 22 Apr 2001 13:48:09 +0000 (+0000) Subject: disabled literal if factoid is requested via /msg by author; use literal X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=10b862da6cde3dcfa2a54f952d4794fa86923e56;p=infobot.git disabled literal if factoid is requested via /msg by author; use literal instead git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@459 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/Factoids/Reply.pl b/src/Factoids/Reply.pl index dec2a12..ef582ef 100644 --- a/src/Factoids/Reply.pl +++ b/src/Factoids/Reply.pl @@ -51,7 +51,7 @@ sub getReply { my $fauthor = &dbGet("factoids", "factoid_key", $message, "created_by"); ### we need non-evaluating regex like in factoid sar. if ($msgType =~ /^private$/) { - if (defined $fauthor and $fauthor =~ /^\Q$who\E\!/i) { + if (0 and defined $fauthor and $fauthor =~ /^\Q$who\E\!/i) { &status("Reply.pl: author requested own factoid in private; literal!"); $literal = 1; }