From 656d2f265ce2547f5f7ab37c1a6016cecf6dfec7 Mon Sep 17 00:00:00 2001 From: w00t Date: Thu, 25 Oct 2007 15:45:35 +0000 Subject: Brain, look at this pls :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8359 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_cloaking.cpp | 3 +++ 1 file changed, 3 insertions(+) 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')) -- cgit v1.2.3