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_user.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_user.cpp')
| -rw-r--r-- | src/commands/cmd_user.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
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<std::string>& 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; |
