diff options
author | Daniel De Graaf <danieldg@inspircd.org> | 2010-09-04 19:30:44 -0400 |
---|---|---|
committer | Daniel De Graaf <danieldg@inspircd.org> | 2010-09-04 19:30:44 -0400 |
commit | 08895e2aa3c1bfe604cf85249ea2ee62743e73ff (patch) | |
tree | 6f8fe1c023052f7f16ce503c483d591955da926b /src/mode.cpp | |
parent | 3ee7abb7b9127edd8b730602376a9e827afb95f6 (diff) |
Do not apply parameter length restrictions or CleanMask when unsetting modes
Diffstat (limited to 'src/mode.cpp')
-rw-r--r-- | src/mode.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mode.cpp b/src/mode.cpp index bda0f81aa..a3f8ab6fe 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -266,7 +266,7 @@ ModeAction ModeParser::TryMode(User* user, User* targetuser, Channel* chan, bool int pcnt = mh->GetNumParams(adding); // crop mode parameter size to 250 characters - if (parameter.length() > 250) + if (parameter.length() > 250 && adding) parameter = parameter.substr(0, 250); ModResult MOD_RESULT; |