summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-12 20:28:40 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-12 20:28:40 +0000
commitaa806be18537b714c54176f0725e1f40e4669f0c (patch)
tree9195039ef37d580cc6f3b8d8ace2e6d8337f68ff /src/modules
parent8006da76e04591191e6e52826e7af019b5c01f63 (diff)
Opers cannot change the modes of others
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6993 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_showwhois.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_showwhois.cpp b/src/modules/m_showwhois.cpp
index 7c35fe08e..2b83243c1 100644
--- a/src/modules/m_showwhois.cpp
+++ b/src/modules/m_showwhois.cpp
@@ -28,7 +28,7 @@ class SeeWhois : 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)