]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Factoids/Update.pl
- strictify
[infobot.git] / src / Factoids / Update.pl
index 4e78a862c987095fb8dc4acace0dfaa6fd5186a1..885538280735b9268d4fbc4f890cd21d37bfe8da 100644 (file)
@@ -6,7 +6,7 @@
 #   Created: 1997
 #
 
-if (&IsParam("useStrict")) { use strict; }
+# use strict;  # TODO
 
 sub update {
     my($lhs, $mhs, $rhs) = @_;
@@ -107,18 +107,12 @@ sub update {
 
        &performAddressedReply("okay");
 
-       if (0) {        # old
-           &setFactInfo($lhs, "factoid_value", $rhs);
-           &setFactInfo($lhs, "created_by",    $nuh);
-           &setFactInfo($lhs, "created_time",  time());
-       } else {
-           &dbReplace("factoids", "factoid_key", (
+       &dbReplace("factoids", "factoid_key", (
                created_by      => $nuh,
                created_time    => time(),      # modified time.
                factoid_key     => $lhs,
                factoid_value   => $rhs,
-           ) );
-       }
+       ) );
 
        if (!defined $rhs or $rhs eq "") {
            &ERROR("Update: rhs1 == NULL.");