diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-07-12 10:44:14 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-07-12 10:44:14 +0000 |
commit | 3798e67d95a44e50ce55b0bd25dc693aca56f318 (patch) | |
tree | 298bd20a7f247a596a1bbe2d665a4e7e65e5bd60 | |
parent | 84ae7f133e243fb5ec9131b9d25903a70bbfb582 (diff) |
Don't add a 10 second penalty to all connecting users (this was accidental)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9974 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/commands/cmd_nick.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/commands/cmd_nick.cpp b/src/commands/cmd_nick.cpp index 0eb55ccfe..0e2403752 100644 --- a/src/commands/cmd_nick.cpp +++ b/src/commands/cmd_nick.cpp @@ -168,6 +168,9 @@ CmdResult CommandNick::Handle (const std::vector<std::string>& parameters, User { user->registered = (user->registered | REG_NICK); } + + // Keep these seperate! + if (user->registered == REG_NICKUSER) { /* user is registered now, bit 0 = USER command, bit 1 = sent a NICK command */ @@ -176,7 +179,7 @@ CmdResult CommandNick::Handle (const std::vector<std::string>& parameters, User if (MOD_RESULT > 0) return CMD_FAILURE; } - if (user->registered == REG_ALL) + else if (user->registered == REG_ALL) { user->IncreasePenalty(10); FOREACH_MOD(I_OnUserPostNick,OnUserPostNick(user, oldnick)); |