summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-12 20:42:18 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-12 20:42:18 +0000
commit59aa01f8f7738eab12948033ad0a92a568ea7996 (patch)
tree781bc1e77144c78c0b1d256291390edd5ecac3af
parent8f06b469e49ff5b159859f7876c9240afc2ecf85 (diff)
Opers cannot change the modes of others.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6998 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_hidechans.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_hidechans.cpp b/src/modules/m_hidechans.cpp
index 61f476f70..d7438d877 100644
--- a/src/modules/m_hidechans.cpp
+++ b/src/modules/m_hidechans.cpp
@@ -28,7 +28,7 @@ class HideChans : 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;
if (adding)