summaryrefslogtreecommitdiff
path: root/src/mode.cpp
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/mode.cpp
parent3ee7abb7b9127edd8b730602376a9e827afb95f6 (diff)
Do not apply parameter length restrictions or CleanMask when unsetting modes
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp2
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;