diff options
| author | 2007-05-12 20:36:11 +0000 | |
|---|---|---|
| committer | 2007-05-12 20:36:11 +0000 | |
| commit | ccf07e073a03eddaacc5e4dcfcc0548ce6f17d46 (patch) | |
| tree | 819507a180e20dc3903316e75bbe1e3282f4d2d4 /src/modules/m_cloaking.cpp | |
| parent | Small thing, but check for IS_OPER(source) too, just in case someone crazy wr... (diff) | |
Opers cannot change the modes of others.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6995 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_cloaking.cpp')
| -rw-r--r-- | src/modules/m_cloaking.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp index 3506c8bee..e53124aa0 100644 --- a/src/modules/m_cloaking.cpp +++ b/src/modules/m_cloaking.cpp @@ -77,8 +77,7 @@ class CloakUser : public ModeHandler ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding) { - /* Only opers can change other users modes */ - if ((source != dest) && (!*source->oper)) + if (source != dest) return MODEACTION_DENY; /* For remote clients, we dont take any action, we just allow it. |
