From: timriker Date: Thu, 21 Nov 2002 06:52:31 +0000 (+0000) Subject: cookie arg bug X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=0d5d49deac00b403a4771edd610f4203e33e2075;p=infobot.git cookie arg bug git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@637 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/blootbot/src/CommandStubs.pl b/blootbot/src/CommandStubs.pl index b70b378..18cb997 100644 --- a/blootbot/src/CommandStubs.pl +++ b/blootbot/src/CommandStubs.pl @@ -697,7 +697,7 @@ sub cookie { if ($arg) { my @list = &searchTable("factoids", "factoid_key", "factoid_value", $arg); $key = &getRandom(@list); - $val = &getFactInfo("factoids", $key, "factoid_value"); + $value = &getFactInfo($key, "factoid_value"); } else { ($key,$value) = &randKey("factoids","factoid_key,factoid_value"); }