From abdc47a61538231ad1d5e077cf2a84f414c87454 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Tue, 23 Jul 2019 15:17:01 +0100 Subject: Add a constant for the maximum length of a mode parameter. --- src/listmode.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/listmode.cpp') diff --git a/src/listmode.cpp b/src/listmode.cpp index 3d8221779..2a2515cd2 100644 --- a/src/listmode.cpp +++ b/src/listmode.cpp @@ -160,9 +160,6 @@ ModeAction ListModeBase::OnModeChange(User* source, User*, Channel* channel, std if (tidy) ModeParser::CleanMask(parameter); - if (parameter.length() > 250) - return MODEACTION_DENY; - // If there was no list if (!cd) { -- cgit v1.3.1-10-gc9f91