]> git.donarmstrong.com Git - infobot.git/commitdiff
notfound uses @query now; removed origQuery
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Mon, 25 Sep 2000 12:07:01 +0000 (12:07 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Mon, 25 Sep 2000 12:07:01 +0000 (12:07 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@142 c11ca15a-4712-0410-83d8-924469b57eb5

src/Factoids/Question.pl

index 56a3a5317b27a574b2ee294b19eab0b538a47091..1347ec9c4f6cd47939ac2ccaaf59e202293c1286 100644 (file)
@@ -30,7 +30,6 @@ sub doQuestion {
        return '';
     }
 
-    my $origQuery      = $query;
     my $questionWord   = "";
 
     if (!$addressed) {
@@ -120,11 +119,7 @@ sub doQuestion {
     if ($questionWord ne "" or $finalQMark) {
        # if it has not been explicitly marked as a question
        if ($addressed and $reply eq "") {
-           if ($origQuery eq $query) {
-               &status("notfound: <$who> $origQuery");
-           } else {
-               &status("notfound: <$who> $origQuery :: $query");
-           }
+           &status("notfound: <$who> ".join(' :: ', @query));
 
            return '' unless (&IsParam("friendlyBots"));