diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-03-03 16:25:19 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-03-03 16:25:19 +0000 |
commit | 5fa6825aa319ee37a37b7c7d11f542c83e2f8333 (patch) | |
tree | 89e66084ce2fe8a0eb90f9d48eac240a2ce3d709 | |
parent | e7c3e34bcc90147b3ca85ea9e7711a2a19ce81ac (diff) |
Minor tweak, return of OnUserRegister discarded in cmd_user (should not have effected anything, but bad style)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6619 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/cmd_nick.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cmd_nick.cpp b/src/cmd_nick.cpp index 4e2c4936c..70bb5a63b 100644 --- a/src/cmd_nick.cpp +++ b/src/cmd_nick.cpp @@ -160,7 +160,10 @@ CmdResult cmd_nick::Handle (const char** parameters, int pcnt, userrec *user) if (user->registered == REG_NICKUSER) { /* user is registered now, bit 0 = USER command, bit 1 = sent a NICK command */ - FOREACH_MOD(I_OnUserRegister,OnUserRegister(user)); + int MOD_RESULT = 0; + FOREACH_RESULT(I_OnUserRegister,OnUserRegister(user)); + if (MOD_RESULT > 0) + return CMD_FAILURE; } if (user->registered == REG_ALL) { |