From: timriker Date: Wed, 14 Jul 2004 19:36:47 +0000 (+0000) Subject: literal searches and shows where X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=4cabc12aed4307d3f0fc2e6e3ebd764f826a95be;p=infobot.git literal searches and shows where git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1004 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/Factoids/Reply.pl b/src/Factoids/Reply.pl index 36d0c11..4457ae1 100644 --- a/src/Factoids/Reply.pl +++ b/src/Factoids/Reply.pl @@ -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;