]> jfr.im git - irc/quakenet/newserv.git/blobdiff - whowas/whowas_channels.c
CHANSERV: better batcher error handling for expired accounts/accounts with no email.
[irc/quakenet/newserv.git] / whowas / whowas_channels.c
index 0813bcbbf035dfcf6c1598a80ba2679a322a0efe..c70bce49f09f44ea8001ad4a8b492fdf7740a3be 100644 (file)
@@ -20,8 +20,6 @@ static void wwc_derefchannel(chanindex *cip) {
   uintptr_t *refcount = (uintptr_t *)&cip->exts[wwccext];
   (*refcount)--;
 
-  assert(*refcount >= 0);
-
   if (*refcount == 0)
     releasechanindex(cip);
 }
@@ -59,6 +57,7 @@ static void wwc_hook_lostnick(int hooknum, void *arg) {
   }
 
   free(wchans);
+  np->exts[wwcnext] = NULL;
 }
 
 static void wwc_hook_newrecord(int hooknum, void *arg) {