summaryrefslogtreecommitdiff
path: root/src/commands/cmd_pass.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-01-19 17:47:03 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-01-19 17:47:03 +0100
commit54ecd7ff910408015d395c5c737fb48dfb9d7a0a (patch)
treee528150b2ef9507c8a913b38b8ecc5999ec17e11 /src/commands/cmd_pass.cpp
parent17b4151bff2edcec3f3524cc60e536407c70cec6 (diff)
parent80350a67aa7d45e5068f46b8995be92b0d9b40aa (diff)
Merge branch 'insp20+penalty' into insp20
Diffstat (limited to 'src/commands/cmd_pass.cpp')
-rw-r--r--src/commands/cmd_pass.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/commands/cmd_pass.cpp b/src/commands/cmd_pass.cpp
index f082a4ce8..9fc758874 100644
--- a/src/commands/cmd_pass.cpp
+++ b/src/commands/cmd_pass.cpp
@@ -46,6 +46,7 @@ CmdResult CommandPass::HandleLocal(const std::vector<std::string>& parameters, L
// Check to make sure they haven't registered -- Fix by FCS
if (user->registered == REG_ALL)
{
+ user->CommandFloodPenalty += 1000;
user->WriteNumeric(ERR_ALREADYREGISTERED, "%s :You may not reregister",user->nick.c_str());
return CMD_FAILURE;
}