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_nick.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/commands/cmd_nick.cpp') diff --git a/src/commands/cmd_nick.cpp b/src/commands/cmd_nick.cpp index a69f1ddac..547779eeb 100644 --- a/src/commands/cmd_nick.cpp +++ b/src/commands/cmd_nick.cpp @@ -73,13 +73,7 @@ CmdResult CommandNick::Handle (const std::vector& parameters, User if (user->registered == REG_NICKUSER) { /* user is registered now, bit 0 = USER command, bit 1 = sent a NICK command */ - ModResult MOD_RESULT; - FIRST_MOD_RESULT(OnUserRegister, MOD_RESULT, (IS_LOCAL(user))); - if (MOD_RESULT == MOD_RES_DENY) - return CMD_FAILURE; - - // return early to not penalize new users - return CMD_SUCCESS; + FOREACH_MOD(I_OnUserRegister, OnUserRegister(IS_LOCAL(user))); } } -- cgit v1.3.1-10-gc9f91