diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mode.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mode.cpp b/src/mode.cpp index bb9bd3c51..176461ba5 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -952,12 +952,12 @@ void ModeParser::ProcessModes(char **parameters,userrec* user,chanrec *chan,int } else { - if (param < pcnt) + *outl++ = *modechar; + chan->SetCustomMode(*modechar,mdir); + // include parameters in output if mode has them + if ((ModeDefinedOn(*modechar,MT_CHANNEL)>0) && (mdir)) { - *outl++ = *modechar; - chan->SetCustomMode(*modechar,mdir); - // include parameters in output if mode has them - if ((ModeDefinedOn(*modechar,MT_CHANNEL)>0) && (mdir)) + if (param < pcnt) { chan->SetCustomModeParam(modelist[ptr],parameters[param],mdir); outpars[pc++] = parameters[param++]; |