summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2008-03-19 01:33:42 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2008-03-19 01:33:42 +0000
commitaaf49d58022cdda23feb81a0f005500f01da9e4a (patch)
tree3a51cb3da971edb0d6b22042a26141f30ba4db12 /src
parent9663a627bb77c42fd9d345412f96e6e9efca2746 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/commands/cmd_nick.cpp2
1 files changed, 1 insertions, 1 deletions
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;