]> git.donarmstrong.com Git - infobot.git/blobdiff - scripts/txt2mysql.pl
* Reformated AUTHORS
[infobot.git] / scripts / txt2mysql.pl
index ec9648e5254dda4b7e88a7d31e347ebe754c9dbf..68b134d5985e9e056f8c7e2ef33f78cd26b5a900 100755 (executable)
@@ -18,10 +18,10 @@ if (!scalar @ARGV) {
 my $txtfile = shift;
 open(IN,$txtfile) or die "error: cannot open txtfile '$txtfile'.\n";
 
-# read the infobot config.
+# read the bot config file.
 &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