diff options
| author | 2010-02-17 12:35:43 -0600 | |
|---|---|---|
| committer | 2010-08-03 17:32:36 -0400 | |
| commit | 85994fbfacfd44d6a62d01297959870458e7b2de (patch) | |
| tree | c0bb7c1bc45b768dfa68570795594573887d0937 /src/commands/cmd_nick.cpp | |
| parent | Remove SetMode functions by letter, add IsModeSet query by name (diff) | |
Remove useless return value from OnUserRegister
Diffstat (limited to 'src/commands/cmd_nick.cpp')
| -rw-r--r-- | src/commands/cmd_nick.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
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<std::string>& 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))); } } |
