]> git.donarmstrong.com Git - infobot.git/blobdiff - scripts/txt2mysql.pl
* Add vim formatting comments ( # vim:ts=4:sw=4:expandtab:tw=80 )
[infobot.git] / scripts / txt2mysql.pl
index 4c5236966ac43af691cedacdb3708f13dd0531f3..68b134d5985e9e056f8c7e2ef33f78cd26b5a900 100755 (executable)
@@ -19,9 +19,9 @@ my $txtfile = shift;
 open(IN,$txtfile) or die "error: cannot open txtfile '$txtfile'.\n";
 
 # read the bot config file.
-&loadConfig("files/blootbot.config");
+&loadConfig("files/infobot.config");
 &loadDBModules();
-&openDB();
+&openDB($param{'DBName'}, $param{'SQLUser'}, $param{'SQLPass'});
 
 ### now pipe all the data to the mysql server...
 my $i = 1;
@@ -55,3 +55,5 @@ close IN;
 
 print "Done.\n";
 &closeDB();
+
+# vim:ts=4:sw=4:expandtab:tw=80