]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Process.pl
massive add-in for postgres support, contributed by troubled
[infobot.git] / src / Process.pl
index 914f4812a3ed068167c03eb76aaed3f7981571c9..f9cd46c26b6dd77459f39c8b8dddb9eb99a8f3e3 100644 (file)
@@ -316,7 +316,7 @@ sub process {
            $karma--;
        }
 
-       &sqlReplace("stats", {
+       &sqlSet("stats", {'nick' => $term}, {
            nick        => $term,
            type        => "karma",
            'time'      => time(),
@@ -349,7 +349,7 @@ sub process {
        }
     }
 
-    if (&IsParam("factoids") and $param{'DBType'} =~ /^(mysql|sqlite|pgsql)/i) {
+    if (&IsParam("factoids") and $param{'DBType'} =~ /^(mysql|sqlite(2)?|pgsql)$/i) {
        &FactoidStuff();
     } elsif ($param{'DBType'} =~ /^none$/i) {
        return "NO FACTOIDS.";