]> jfr.im git - irc/quakenet/newserv.git/blobdiff - request/request_fasttrack.c
LUA: add function for channel chanop notice
[irc/quakenet/newserv.git] / request / request_fasttrack.c
index 7cfd91858afb7a8af583f6f39c2aa74d6e8895ef..a49a1475716b2d476951b6e11037a6d59d7a048b 100644 (file)
@@ -54,6 +54,8 @@ static void rqhook_account(int hook, void *arg) {
   nick *np = (nick *)arg;
   rq_fasttrack *ft;
 
+  np->exts[rqnext] = NULL;
+
   /* Auth might be null for the newnick hook. */
   if(!np->auth)
     return;
@@ -75,11 +77,11 @@ static void rq_cleanup_fasttrack(void *arg) {
 
   now = getnettime();
 
-  pft = &ftlist;
-
-  for(ft=*pft;*pft;pft=&((*pft)->next)) {
+  for(pft=&ftlist;*pft;pft=&((*pft)->next)) {
     int foundnick = 0;
 
+    ft = *pft;
+
     for(j=0;j<NICKHASHSIZE && !foundnick;j++) {
       for(tnp=nicktable[j];tnp;tnp=tnp->next) {
         if(tnp->exts[rqnext]==ft) {