]> git.donarmstrong.com Git - infobot.git/blobdiff - src/db_pgsql.pl
- renamed Factoids/Misc.pl to Factoids/Core.pl
[infobot.git] / src / db_pgsql.pl
index e32d0b7399419866bc71bc9ed78e4124a6047c49..7d025f9547401bdd891669fe6ea78d31362becbc 100644 (file)
@@ -282,7 +282,7 @@ sub dbReplace {
        }
        $uquery .= "$keys[-1] = $vals[-1], ";
     }
-    $uquery = ~s/, $/ $where;/;
+    $uquery =s/, $/ $where;/;
     $iquery .= "(". join(',',@keys) .") VALUES (". join(',',@vals) .");";
 
     &DEBUG($squery) if (0);
@@ -451,34 +451,6 @@ sub searchTable {
     return @results;
 }
 
-####################################################################
-##### Factoid related stuff...
-#####
-
-#####
-# Usage: &getFactInfo($faqtoid, $type);
-#  Note: getFactInfo does dbQuote
-sub getFactInfo {
-    return &dbGet("factoids", $_[1], "factoid_key=".&dbQuote($_[0]) );
-}
-
-#####
-# Usage: &getFactoid($faqtoid);
-sub getFactoid {
-    return &getFactInfo($_[0], "factoid_value");
-}
-
-#####
-# Usage: &delFactoid($faqtoid);
-sub delFactoid {
-    my ($faqtoid) = @_;
-
-    &dbDel("factoids", "factoid_key",$faqtoid);
-    &status("DELETED '$faqtoid'");
-
-    return 1;
-}
-
 #####
 #
 sub checkTables {