]> jfr.im git - irc/quakenet/newserv.git/blobdiff - helpmod2/haccount.c
merge
[irc/quakenet/newserv.git] / helpmod2 / haccount.c
index 5ce4e5537762fd527b3fe064e66c692d316714fc..ec9e15221ae4fb78b4a2eb0f91c250a0c5ac3468 100644 (file)
@@ -90,9 +90,9 @@ void haccount_clear_inactives(void)
 {
     haccount **ptr = &haccounts;
     while (*ptr)
-        if (time(NULL) - (*ptr)->last_activity > HELPMOD_ACCOUNT_EXPIRATION[(*ptr)->level])
-            haccount_del(*ptr);
-        else
+       if ((time(NULL) - (*ptr)->last_activity > HELPMOD_ACCOUNT_EXPIRATION[(*ptr)->level]) && !((*ptr)->flags & H_NO_EXPIRE))
+           haccount_del(*ptr);
+       else
             ptr = &(*ptr)->next;
 }