[SimBot-commits] CVS: simbot/plugins error.pl,1.11,1.12 sqlite-logger.pl,1.43,1.44 weather.pl,1.62,1
Status: Abandoned
Brought to you by:
kstange
|
From: Kevin S. <ks...@us...> - 2005-05-06 21:10:54
|
Update of /cvsroot/simbot/simbot/plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv541/plugins Modified Files: error.pl sqlite-logger.pl weather.pl Log Message: Move some files to data/ which will be used to store databases from now on. Please move your irclog file to data/ :) Index: error.pl =================================================================== RCS file: /cvsroot/simbot/simbot/plugins/error.pl,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -p -r1.11 -r1.12 --- error.pl 4 May 2005 19:50:12 -0000 1.11 +++ error.pl 6 May 2005 21:10:26 -0000 1.12 @@ -23,7 +23,7 @@ use warnings; sub random_error { my ($kernel, $nick, $channel) = @_; &SimBot::debug(3, "error: Got error request from " . $nick . ".\n"); - open(FILE, "errors.db"); + open(FILE, "data/errors.db"); my @lines = <FILE>; close(FILE); my $error = &SimBot::pick(@lines); Index: sqlite-logger.pl =================================================================== RCS file: /cvsroot/simbot/simbot/plugins/sqlite-logger.pl,v retrieving revision 1.43 retrieving revision 1.44 diff -u -d -p -r1.43 -r1.44 --- sqlite-logger.pl 4 May 2005 19:54:14 -0000 1.43 +++ sqlite-logger.pl 6 May 2005 21:10:27 -0000 1.44 @@ -59,7 +59,7 @@ EOT sub messup_sqlite_logger { $dbh = DBI->connect( - 'dbi:SQLite:dbname=irclog', + 'dbi:SQLite:dbname=data/irclog', '','', # user, pass aren't useful to SQLite { RaiseError => 1, AutoCommit => 0 } ) or die; Index: weather.pl =================================================================== RCS file: /cvsroot/simbot/simbot/plugins/weather.pl,v retrieving revision 1.62 retrieving revision 1.63 diff -u -d -p -r1.62 -r1.63 --- weather.pl 6 May 2005 00:21:25 -0000 1.62 +++ weather.pl 6 May 2005 21:10:28 -0000 1.63 @@ -106,7 +106,7 @@ sub messup_wx { $dbh = DBI->connect('dbi:SQLite:dbname=caches/weather','','', { RaiseError => 1, AutoCommit => 0 }) or die; - $zip_dbh = DBI->connect('dbi:SQLite:dbname=USzip','','', + $zip_dbh = DBI->connect('dbi:SQLite:dbname=data/USzip','','', { RaiseError => 1, AutoCommit => 0 }) or die; # let's create the table. If this fails, we don't care, as it |