#include "../../core/nsmalloc.h"
#include "../../lib/strlfunc.h"
#include "../../dbapi/dbapi.h"
+#include "../../lib/version.h"
#include <string.h>
#include <stdio.h>
#include <sys/poll.h>
#include <stdarg.h>
+MODULE_VERSION(QVERSION);
+
int chanservdb_ready;
regchan **allchans;
chanservext=registerchanext("chanserv");
chanservaext=registerauthnameext("chanserv",1);
- /* Set up the allocators and hashes */
- chanservallocinit();
+ /* Set up the hashes */
chanservhashinit();
/* And the messages */
regban *rbp;
regchan *rcp;
int uid,cid,bid;
- time_t expiry,now;
+ time_t expiry;
int total=0;
pgres=dbgetresult(dbconn);
return;
}
- now=time(NULL);
-
while(dbfetchrow(pgres)) {
bid=strtoul(dbgetvalue(pgres,0),NULL,10);
cid=strtoul(dbgetvalue(pgres,1),NULL,10);