*/
#include "inspircd.h"
-#include "configreader.h"
-#include "users.h"
#include "commands/cmd_user.h"
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
{
return new cmd_user(Instance);
}
-CmdResult cmd_user::Handle (const char** parameters, int pcnt, userrec *user)
+CmdResult cmd_user::Handle (const char** parameters, int pcnt, User *user)
{
/* A user may only send the USER command once */
if (!(user->registered & REG_USER))
if (user->registered == REG_NICKUSER)
{
int MOD_RESULT = 0;
+
/* user is registered now, bit 0 = USER command, bit 1 = sent a NICK command */
- if (ServerInstance->next_call > ServerInstance->Time() + ServerInstance->Config->dns_timeout)
- ServerInstance->next_call = ServerInstance->Time() + ServerInstance->Config->dns_timeout;
FOREACH_RESULT(I_OnUserRegister,OnUserRegister(user));
if (MOD_RESULT > 0)
return CMD_FAILURE;