]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Minor tweak, return of OnUserRegister discarded in cmd_user (should not have effected...
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 3 Mar 2007 16:25:19 +0000 (16:25 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 3 Mar 2007 16:25:19 +0000 (16:25 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6619 e03df62e-2008-0410-955e-edbf42e46eb7

src/cmd_nick.cpp

index 4e2c4936c542251d7aa4f36cbe73862d0e300f49..70bb5a63b93f6eb024e66af5bd297116855da1e2 100644 (file)
@@ -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)
        {