These shouldn't occur except via database import, but a warning message is spammed so it can be checked.
The actual deleting code is commented out pending testing.
cs_removechannel(rcp);
chansvaped++;
}
cs_removechannel(rcp);
chansvaped++;
}
+
+ /* Get rid of any dead chanlev entries */
+ for (j=0;j<REGCHANUSERHASHSIZE;j++) {
+ for (rcup=rcp->users[j];rcup;rcup=nrcup} {
+ nrcup=rcup->nextbychan;
+
+ if (!rcup->flags) {
+ chanservsendmessage("Removing user %s from channel %s (no flags)",rcup->user->username,rcp->index->name->content);
+/*
+ csdb_deletechanuser(rcup);
+ delreguserfromchannel(rcp, rcup->user);
+*/
+ }
+ }
+ }