From 3798e67d95a44e50ce55b0bd25dc693aca56f318 Mon Sep 17 00:00:00 2001 From: w00t Date: Sat, 12 Jul 2008 10:44:14 +0000 Subject: 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 --- src/commands/cmd_nick.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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& 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& 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)); -- cgit v1.2.3