]> git.donarmstrong.com Git - infobot.git/blobdiff - src/db_mysql.pl
- another round of patches from lear. "we love you, lear!" j/k :o
[infobot.git] / src / db_mysql.pl
index b8fa2c21440ed124ae6f3bdeda3f345995db37f8..b4820513cba9a10bc24dd5f1fa183292b18b4fa4 100644 (file)
@@ -270,7 +270,7 @@ sub dbInsert {
 }
 
 #####
-# Usage: &dbReplace($table, $key %hash);
+# Usage: &dbReplace($table, $key, %hash);
 #  Note: dbReplace does optional dbQuote.
 sub dbReplace {
     my ($table, $key, %hash) = @_;
@@ -455,37 +455,9 @@ 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 dbCreateTable {
     my($table) = @_;
-    my(@path)  = (".","..","../..");
+    my(@path)  = ($bot_data_dir, ".","..","../..");
     my $found  = 0;
     my $data;