]> git.donarmstrong.com Git - infobot.git/commitdiff
literal searches and shows where
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Wed, 14 Jul 2004 19:36:47 +0000 (19:36 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Wed, 14 Jul 2004 19:36:47 +0000 (19:36 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1004 c11ca15a-4712-0410-83d8-924469b57eb5

src/Factoids/Reply.pl

index 36d0c11da3cf95e5fa3ba8e13e9413ceeba9a40c..4457ae118d78e135927fe171bcaa7a0b24ede267 100644 (file)
@@ -29,7 +29,7 @@ sub getReply {
     $message =~ tr/A-Z/a-z/;
     $message =~ s/^cmd:/CMD:/;
 
-    if (!$literal and &IsChanConf("factoidSearch")) {
+    if (&IsChanConf("factoidSearch")) {
        @searches = split(/\s+/, &getChanConf("factoidSearch"));
     } else {
        @searches = ('_default');
@@ -131,8 +131,6 @@ sub getReply {
        }
     }
 
-    return $reply if ($literal);
-
     # remove excessive beginning and end whitespaces.
     $reply     =~ s/^\s+|\s+$//g;