#include "client.h"
#include "ircd.h"
#include "ircd_chattr.h"
+#include "ircd_log.h"
#include "ircd_reply.h"
#include "ircd_string.h"
#include "numeric.h"
#include "s_user.h"
#include "send.h"
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
user->server = &me;
ircd_strncpy(cli_info(cptr), info, REALLEN);
- if ((cli_name(cptr))[0] && cli_cookie(cptr) == COOKIE_VERIFIED) {
+ cli_unreg(sptr) &= ~CLIREG_USER; /* username now set */
+
+ if (!cli_unreg(sptr)) {
/*
* NICK and PONG already received, now we have USER...
*/
- return register_user(cptr, sptr, cli_name(sptr), username, 0);
+ return register_user(cptr, sptr, cli_name(sptr), username);
}
else {
ircd_strncpy(user->username, username, USERLEN);