#include "client.h"
#include "hash.h"
#include "ircd.h"
+#include "ircd_log.h"
#include "ircd_reply.h"
#include "ircd_string.h"
#include "msg.h"
#include "s_user.h"
#include "send.h"
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
#include <string.h>
#include <stdlib.h>
/*
- * ms_pong - server message handler template
+ * ms_pong - server message handler
*
* parv[0] = sender prefix
* parv[1] = origin
if (0 != cli_cookie(sptr) && COOKIE_VERIFIED != cli_cookie(sptr)) {
if (parc > 1 && cli_cookie(sptr) == atol(parv[parc - 1])) {
cli_cookie(sptr) = COOKIE_VERIFIED;
- if (cli_user(sptr) && *(cli_user(sptr))->host && (cli_name(sptr))[0])
+ cli_unreg(sptr) &= ~CLIREG_COOKIE; /* cookie has been returned... */
+ if (!cli_unreg(sptr)) /* no more registration tasks... */
/*
* NICK and USER OK
*/