diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-09 00:34:34 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-09 00:34:34 +0000 |
commit | f588391d5f3c7ca2c21f20d434dce78df5da35ce (patch) | |
tree | defbe58d110413e83edc03d857e14660ac378cbf /src/modes/cmode_o.cpp | |
parent | e28889304b2d2e4c0a79260a2980a2c66c8fdea5 (diff) |
Changes to m_override
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5177 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modes/cmode_o.cpp')
-rw-r--r-- | src/modes/cmode_o.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modes/cmode_o.cpp b/src/modes/cmode_o.cpp index b9fb0208b..a66818005 100644 --- a/src/modes/cmode_o.cpp +++ b/src/modes/cmode_o.cpp @@ -77,7 +77,10 @@ ModeAction ModeChannelOp::OnModeChange(userrec* source, userrec* dest, chanrec* * the return value and is always MODEACTION_DENY if the mode is supposed to have * a parameter. */ - return MODEACTION_ALLOW; + if (parameter.length()) + return MODEACTION_ALLOW; + else + return MODEACTION_DENY; } std::string ModeChannelOp::AddOp(userrec *user,const char* dest,chanrec *chan,int status) |