Avoid repeating PONG handling that may already have been done.
[ircu2.10.12-pk.git] / ircd / s_auth.c
index d64fb5cb3aaef87b52616373a60cef50a7653bcb..fdefd97443f8e982b45a74fcc5405ccb544709d1 100644 (file)
@@ -1018,6 +1018,7 @@ int auth_set_pong(struct AuthRequest *auth, unsigned int cookie)
                ":To connect, type /QUOTE PONG %u", auth->cookie);
     return 0;
   }
+  cli_lasttime(auth->client) = CurrentTime;
   FlagClr(&auth->flags, AR_NEEDS_PONG);
   return check_auth_finished(auth);
 }