]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Factoids/Update.pl
- bot stats: "blah has blah... is ranked xx/yy (zz percentile)"
[infobot.git] / src / Factoids / Update.pl
index 68c0cfc7c1c4daa2a45ace0f1cdfb70d5b81351f..ee6c6a8a06eee002e18ad94d23e348db0e721d98 100644 (file)
@@ -107,12 +107,13 @@ sub update {
 
        &performAddressedReply("okay");
 
-       ### BROKEN!!!
        if (1) {        # old
+           &setFactInfo($lhs,"factoid_value", $rhs);
            &setFactInfo($lhs,"created_by", $nuh);
            &setFactInfo($lhs,"created_time", time());
-           &setFactInfo($lhs,"factoid_value", $rhs);
        } else {
+           ### BROKEN!!!
+           # I'd prefer to use dbReplace but it don't work.
            &dbReplace("factoids", (
                factoid_key     => $lhs,
                created_by      => time(),