]> git.donarmstrong.com Git - infobot.git/blobdiff - src/dbi.pl
If topicAuthor is on then show it in topic, otherwise just topic -- contribution...
[infobot.git] / src / dbi.pl
index 99d115e4d95d81a3f471faeaff568be27e2f4d39..bb3c396c9b38df6a134d1074b73cbdeae7777999 100644 (file)
@@ -293,12 +293,10 @@ sub sqlInsert {
        return;
     }
 
-    &sqlRaw("Insert($table)", sprintf(
+    return &sqlRaw("Insert($table)", sprintf(
        "INSERT %s INTO %s (%s) VALUES (%s)",
        ($other || ""), $table, join(',',@k), join(',',@v)
     ) );
-
-    return 1;
 }
 
 #####
@@ -639,7 +637,7 @@ sub checkTables {
        # create database not needed for SQLite
     }
 
-    foreach ( qw(botmail connections factoids rootwarn seen stats) ) {
+    foreach ( qw(botmail connections factoids rootwarn seen stats onjoin) ) {
        if (exists $db{$_}) {
            $cache{has_table}{$_} = 1;
            next;