]> jfr.im git - irc/quakenet/newserv.git/commitdiff
CHANFIX: Ooops, should be after, not before
authorCruicky <redacted>
Wed, 9 Jun 2010 20:39:29 +0000 (21:39 +0100)
committerCruicky <redacted>
Wed, 9 Jun 2010 20:39:29 +0000 (21:39 +0100)
chanfix/chanfix.c

index 89868eda85c5161270214e77b5bc64b8f1ece464..0ff01ed874b17046c0cbf7f57d1917275d2705c8 100644 (file)
@@ -103,14 +103,6 @@ void _init() {
 }
 
 void _fini() {
-  if (cfext >= 0) {
-    releasechanext(cfext);
-  }
-
-  if (cfnext >= 0) {
-    releasenickext(cfnext);
-  }
-
   if (cffailedinit == 0) {
     deleteschedule(NULL, &cfsched_dosample, NULL);
     deleteschedule(NULL, &cfsched_doexpire, NULL);
@@ -146,6 +138,14 @@ void _fini() {
     deregisterhook(HOOK_CORE_STATSREQUEST, &cfhook_statsreport);
     deregisterhook(HOOK_NICK_ACCOUNT, &cfhook_auth);
   }
+
+  if (cfext >= 0) {
+    releasechanext(cfext);
+  }
+
+  if (cfnext >= 0) {
+    releasenickext(cfnext);
+  }
 }
 
 int cfcmd_debug(void *source, int cargc, char **cargv) {