diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-12 20:36:11 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-12 20:36:11 +0000 |
commit | ccf07e073a03eddaacc5e4dcfcc0548ce6f17d46 (patch) | |
tree | 819507a180e20dc3903316e75bbe1e3282f4d2d4 | |
parent | 7380557b160e6600f5a444d81a237008cc7fbea5 (diff) |
Opers cannot change the modes of others.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6995 e03df62e-2008-0410-955e-edbf42e46eb7
-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. |