From aaf49d58022cdda23feb81a0f005500f01da9e4a Mon Sep 17 00:00:00 2001 From: peavey Date: Wed, 19 Mar 2008 01:33:42 +0000 Subject: Fix OnUserRegister() not getting called for if USER sent before NICK on registration. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9136 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands/cmd_nick.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/commands/cmd_nick.cpp b/src/commands/cmd_nick.cpp index 2caa9b25a..f3420293f 100644 --- a/src/commands/cmd_nick.cpp +++ b/src/commands/cmd_nick.cpp @@ -144,7 +144,7 @@ CmdResult CommandNick::Handle (const char* const* parameters, int, User *user) { user->registered = (user->registered | REG_NICK); } - else if (user->registered == REG_NICKUSER) + if (user->registered == REG_NICKUSER) { /* user is registered now, bit 0 = USER command, bit 1 = sent a NICK command */ MOD_RESULT = 0; -- cgit v1.2.3