From 85994fbfacfd44d6a62d01297959870458e7b2de Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Wed, 17 Feb 2010 12:35:43 -0600 Subject: Remove useless return value from OnUserRegister --- src/commands/cmd_user.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/commands/cmd_user.cpp') diff --git a/src/commands/cmd_user.cpp b/src/commands/cmd_user.cpp index 1158bc11d..d27496ccc 100644 --- a/src/commands/cmd_user.cpp +++ b/src/commands/cmd_user.cpp @@ -68,13 +68,8 @@ CmdResult CommandUser::HandleLocal(const std::vector& parameters, L /* parameters 2 and 3 are local and remote hosts, and are ignored */ if (user->registered == REG_NICKUSER) { - ModResult MOD_RESULT; - /* user is registered now, bit 0 = USER command, bit 1 = sent a NICK command */ - FIRST_MOD_RESULT(OnUserRegister, MOD_RESULT, (user)); - if (MOD_RESULT == MOD_RES_DENY) - return CMD_FAILURE; - + FOREACH_MOD(I_OnUserRegister, OnUserRegister(IS_LOCAL(user))); } return CMD_SUCCESS; -- cgit v1.3.1-10-gc9f91