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=652b70bad07bc86a4c2c0816764c6ed002af4124;p=infobot.git cookie arg bug git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@637 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/CommandStubs.pl b/src/CommandStubs.pl index b70b378..18cb997 100644 --- a/src/CommandStubs.pl +++ b/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"); }