]> git.donarmstrong.com Git - infobot.git/commitdiff
fixed. setFactInfo should take a hash
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Wed, 20 Nov 2002 18:39:40 +0000 (18:39 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Wed, 20 Nov 2002 18:39:40 +0000 (18:39 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@633 c11ca15a-4712-0410-83d8-924469b57eb5

src/Factoids/Reply.pl

index 58ebb0f53ec37fc1470975b8cbebae54e1b79387..14f516ac8e448fed1984b99f805e0889ab23aaef 100644 (file)
@@ -61,18 +61,11 @@ sub getReply {
        ### FIXME: old mysql doesn't support
        ### "requested_count=requested_count+1".
        $count++;
-       ### BROKEN!!! - Tim Riker <Tim@Rikers.org> says it's fixed now
-       if (0) {        # old code.
-           &setFactInfo($lhs,"requested_by", $nuh);
-           &setFactInfo($lhs,"requested_time", time());
-           &setFactInfo($lhs,"requested_count", $count);
-       } else {
-           &dbSet("factoids", {'factoid_key' => $lhs}, {
+       &dbSet("factoids", {'factoid_key' => $lhs}, {
                requested_by    => $nuh,
                requested_time  => time(),
                requested_count => $count
-           } );
-       }
+       } );
 
        # todo: rename $real to something else!
        my $real   = 0;