summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-01-19 16:42:10 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-01-19 16:42:10 +0100
commit69af56f973b9d31f5ebd7d83e6afedb59bb08c92 (patch)
treef8937f9c264bd8b1cb1f7064e34422675018c125 /src
parentdca19b60efcdd2f5e7c22e830082242fcc7d262a (diff)
m_dccallow Increase penalty for /DCCALLOW help
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_dccallow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp
index de7b6b7bf..db0b54764 100644
--- a/src/modules/m_dccallow.cpp
+++ b/src/modules/m_dccallow.cpp
@@ -223,6 +223,10 @@ class CommandDccallow : public Command
user->WriteNumeric(998, "%s : they will be removed from your DCCALLOW list.", user->nick.c_str());
user->WriteNumeric(998, "%s : your DCCALLOW list will be deleted when you leave IRC.", user->nick.c_str());
user->WriteNumeric(999, "%s :End of DCCALLOW HELP", user->nick.c_str());
+
+ LocalUser* localuser = IS_LOCAL(user);
+ if (localuser)
+ localuser->CommandFloodPenalty += 4000;
}
void DisplayDCCAllowList(User* user)