summaryrefslogtreecommitdiff
path: root/src/modules/m_invisible.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-12 20:43:42 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-12 20:43:42 +0000
commit513921effef52ef2820f02a02bbbbc90acba63b1 (patch)
tree148c5896f68bb929cb5b3003cdffdfe5332a4201 /src/modules/m_invisible.cpp
parent59aa01f8f7738eab12948033ad0a92a568ea7996 (diff)
Opers cannot change the modes of others, and on this module, it's a reeeeeeeeeeeal bad idea. :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6999 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_invisible.cpp')
-rw-r--r--src/modules/m_invisible.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_invisible.cpp b/src/modules/m_invisible.cpp
index ee6334f5e..9313c65da 100644
--- a/src/modules/m_invisible.cpp
+++ b/src/modules/m_invisible.cpp
@@ -57,7 +57,7 @@ class InvisibleMode : public ModeHandler
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string &parameter, bool adding)
{
- if ((source != dest) && (!*source->oper))
+ if (source != dest)
return MODEACTION_DENY;
if (dest->IsModeSet('Q') != adding)