diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-12 20:38:42 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-12 20:38:42 +0000 |
commit | 15daa40087058a698880e3af56a61c489e43df4d (patch) | |
tree | 47f7815a92493c8e73825b1b8e97efff4212cdd9 /src/modules/m_hideoper.cpp | |
parent | ccf07e073a03eddaacc5e4dcfcc0548ce6f17d46 (diff) |
Opers cannot change the modes of others. (In retrospect, a mass commit of these would have been better, but I'm working on another mass commit.)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6996 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_hideoper.cpp')
-rw-r--r-- | src/modules/m_hideoper.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_hideoper.cpp b/src/modules/m_hideoper.cpp index 364771398..0785fd185 100644 --- a/src/modules/m_hideoper.cpp +++ b/src/modules/m_hideoper.cpp @@ -27,8 +27,7 @@ class HideOper : 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; if (adding) |