From: brain Date: Sat, 3 Mar 2007 16:25:19 +0000 (+0000) Subject: Minor tweak, return of OnUserRegister discarded in cmd_user (should not have effected... X-Git-Tag: v2.0.23~5771 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=5fa6825aa319ee37a37b7c7d11f542c83e2f8333;p=user%2Fhenk%2Fcode%2Finspircd.git 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 --- 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) {