if (!IS_LOCAL(dest))
return MODEACTION_ALLOW;
+ /* don't allow this user to spam modechanges */
+ dest->IncreasePenalty(5);
+
if (adding)
{
if(!dest->IsModeSet('x'))
cu = new CloakUser(ServerInstance, this, HashModule);
/* Register it with the core */
- if (!ServerInstance->AddMode(cu, 'x'))
+ if (!ServerInstance->AddMode(cu))
throw ModuleException("Could not add new modes!");
OnRehash(NULL,"");