From 59aa01f8f7738eab12948033ad0a92a568ea7996 Mon Sep 17 00:00:00 2001 From: w00t Date: Sat, 12 May 2007 20:42:18 +0000 Subject: Opers cannot change the modes of others. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6998 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_hidechans.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules') 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 ¶meter, bool adding) { /* Only opers can change other users modes */ - if ((source != dest) && (!*source->oper)) + if (source != dest) return MODEACTION_DENY; if (adding) -- cgit v1.2.3