summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-25 15:45:35 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-25 15:45:35 +0000
commit656d2f265ce2547f5f7ab37c1a6016cecf6dfec7 (patch)
treeffe398deb13c173fcbadb6e594543b2fadf2bb12 /src
parent393c1afdd7bfede2b7f489d7ceb000c909c0fccf (diff)
Brain, look at this pls :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8359 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_cloaking.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp
index 753c8be4b..99cf1dc0f 100644
--- a/src/modules/m_cloaking.cpp
+++ b/src/modules/m_cloaking.cpp
@@ -78,6 +78,9 @@ class CloakUser : public ModeHandler
if (!IS_LOCAL(dest))
return MODEACTION_ALLOW;
+ /* don't allow this user to spam modechanges */
+ dest->IncreasePenalty(5);
+
if (adding)
{
if(!dest->IsModeSet('x'))