]> jfr.im git - irc/quakenet/newserv.git/blobdiff - request/request_fasttrack.c
A4STATS: remove E style escapes and switch to createtable for indices
[irc/quakenet/newserv.git] / request / request_fasttrack.c
index 2663c9dca2e2b7f9889fe4490b7bc79c52c490e2..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;
@@ -68,18 +70,18 @@ static void rqhook_account(int hook, void *arg) {
 }
 
 static void rq_cleanup_fasttrack(void *arg) {
-  time_t now = getnettime();
+  time_t now;
   rq_fasttrack **pft, *ft;
   int j;
   nick *tnp;
 
   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) {