]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Factoids/Question.pl
notfound uses @query now; removed origQuery
[infobot.git] / 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"));