summaryrefslogtreecommitdiff
path: root/src/modules/m_cloaking.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-12 20:36:11 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-12 20:36:11 +0000
commitccf07e073a03eddaacc5e4dcfcc0548ce6f17d46 (patch)
tree819507a180e20dc3903316e75bbe1e3282f4d2d4 /src/modules/m_cloaking.cpp
parent7380557b160e6600f5a444d81a237008cc7fbea5 (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.cpp3
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 &parameter, 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.