diff options
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/u_listmode.h | 9 |
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) { |