summaryrefslogtreecommitdiff
path: root/src/modules/u_listmode.h
diff options
context:
space:
mode:
authorDaniel De Graaf <danieldg@inspircd.org>2010-09-04 19:30:44 -0400
committerDaniel De Graaf <danieldg@inspircd.org>2010-09-04 19:30:44 -0400
commit08895e2aa3c1bfe604cf85249ea2ee62743e73ff (patch)
tree6f8fe1c023052f7f16ce503c483d591955da926b /src/modules/u_listmode.h
parent3ee7abb7b9127edd8b730602376a9e827afb95f6 (diff)
Do not apply parameter length restrictions or CleanMask when unsetting modes
Diffstat (limited to 'src/modules/u_listmode.h')
-rw-r--r--src/modules/u_listmode.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/modules/u_listmode.h b/src/modules/u_listmode.h
index a79828403..c18ac0f71 100644
--- a/src/modules/u_listmode.h
+++ b/src/modules/u_listmode.h
@@ -222,11 +222,14 @@ class ListModeBase : public ModeHandler
// Try and grab the list
modelist* el = extItem.get(channel);
- if (this->tidy)
- ModeParser::CleanMask(parameter);
-
if (adding)
{
+ if (tidy)
+ ModeParser::CleanMask(parameter);
+
+ if (parameter.length() > 250)
+ return MODEACTION_DENY;
+
// If there was no list
if (!el)
{