]> jfr.im git - irc/quakenet/newserv.git/blobdiff - chanserv/database/chanservdb.c
TRUSTS: require sqlite
[irc/quakenet/newserv.git] / chanserv / database / chanservdb.c
index f5c5e21b2e31fa203d4b3d5383fc392368b23c3a..d977b0deccd13e1af17299151fdd0b1c8e44c69b 100644 (file)
@@ -236,8 +236,7 @@ void _init() {
   chanservext=registerchanext("chanserv");
   chanservaext=registerauthnameext("chanserv",1);
 
-  /* Set up the allocators and hashes */
-  chanservallocinit();
+  /* Set up the hashes */
   chanservhashinit();
 
   /* And the messages */
@@ -534,7 +533,7 @@ void loadsomechanbans(DBConn *dbconn, void *arg) {
   regban  *rbp;
   regchan *rcp;
   int uid,cid,bid;
-  time_t expiry,now;
+  time_t expiry;
   int total=0;
 
   pgres=dbgetresult(dbconn);
@@ -549,8 +548,6 @@ void loadsomechanbans(DBConn *dbconn, void *arg) {
     return;
   }
 
-  now=time(NULL);
-
   while(dbfetchrow(pgres)) {
     bid=strtoul(dbgetvalue(pgres,0),NULL,10);
     cid=strtoul(dbgetvalue(pgres,1),NULL,10);