summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-07 10:19:55 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-07 10:19:55 +0000
commit16a56843b0bc40a813c1bcb275141249ca6eed0b (patch)
treeeb1557299979eec7cfb0370342c400f15f2b0dc8 /src
parentb4c78897df7c5b0e19a54d8a909e053fab5e8d4d (diff)
Fixed issue with parameterless module modes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3506 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/mode.cpp10
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++];