chantypes[5]=getsstring("gamesite",20);
chantypes[6]=getsstring("game",20);
chantypes[7]=getsstring("upgrade",20);
+ chantypes[8]=getsstring("partner",20);
/* And the log system */
cs_initlog();
/* Schedule the dumps */
schedulerecurring(time(NULL)+DUMPINTERVAL,0,DUMPINTERVAL,chanservdumpstuff,NULL);
+ schedulerecurring(time(NULL)+5,0,5,csdb_flushchannelcounters,NULL);
chanserv_init_status = CS_INIT_NOUSER;
}
void _fini() {
+ csdb_flushchannelcounters(NULL);
+
dbfreeid(q9dbid);
deleteallschedules(cs_hourlyfunc);
deleteallschedules(chanservreguser);
deleteallschedules(chanservdumpstuff);
deleteallschedules(chanservdgline);
+ deleteallschedules(csdb_flushchannelcounters);
if (chanservext>-1 && chanservnext>-1 && chanservaext>-1) {
int i;