From 08895e2aa3c1bfe604cf85249ea2ee62743e73ff Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Sat, 4 Sep 2010 19:30:44 -0400 Subject: Do not apply parameter length restrictions or CleanMask when unsetting modes --- src/modules/u_listmode.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/modules/u_listmode.h') 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) { -- cgit v1.2.3