diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-25 15:45:35 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-25 15:45:35 +0000 |
commit | 656d2f265ce2547f5f7ab37c1a6016cecf6dfec7 (patch) | |
tree | ffe398deb13c173fcbadb6e594543b2fadf2bb12 /src | |
parent | 393c1afdd7bfede2b7f489d7ceb000c909c0fccf (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.cpp | 3 |
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')) |