Skip to content
Browse files

Update modules/seen.pm

  • Loading branch information...
1 parent 65a65b8 commit a03d3a7316691a8b7652daa6a493c22f23ea381e @incognico committed Jun 3, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 modules/seen.pm
View
6 modules/seen.pm
@@ -1,4 +1,4 @@
-# sqlite3 network.db "create table seen(type text, ts integer, lcnick text, nick text, user text, host text, chan text, kicker text, reason text, newnick text);"
+# sqlite3 profile.db "create table seen(type text, ts integer, lcnick text primary key, nick text, user text, host text, chan text, kicker text, reason text, newnick text);"
package seen;
@@ -50,8 +50,12 @@ sub new {
sub sqlite_connect {
unless ($dbh = DBI->connect("DBI:SQLite:dbname=$db", '', '', { AutoCommit => 1, RaiseError => 1 })) {
+ printf("[%s] !!! modules::%s: %s\n", scalar localtime, __PACKAGE__, $DBI::errstr);
return 1;
}
+ else {
+ return 0;
+ }
}
sub sqlite_disconnect {

0 comments on commit a03d3a7

Please sign in to comment.
Something went wrong with that request. Please try again.