diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-03-23 22:10:04 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-03-23 22:10:04 +0100 |
commit | 3f601a622d886918866ae4775c1199892f43507c (patch) | |
tree | 7e7d98d0b4e06e5063b44e01cedda38e1e947160 /src/modules/m_operprefix.cpp | |
parent | 5c96689b177ded5b864f848687ec98f922215276 (diff) |
m_operprefix Don't set +y on the oper if hideoper is being unset due to deopering
Fixes issue #801 reported by @UselessOper
Diffstat (limited to 'src/modules/m_operprefix.cpp')
-rw-r--r-- | src/modules/m_operprefix.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_operprefix.cpp b/src/modules/m_operprefix.cpp index 25937cd6e..62ddb6c67 100644 --- a/src/modules/m_operprefix.cpp +++ b/src/modules/m_operprefix.cpp @@ -162,7 +162,8 @@ class ModuleOperPrefixMode : public Module void HideOperWatcher::AfterMode(User* source, User* dest, Channel* channel, const std::string& parameter, bool adding, ModeType type) { - if (IS_LOCAL(dest)) + // If hideoper is being unset because the user is deopering, don't set +y + if (IS_LOCAL(dest) && IS_OPER(dest)) parentmod->SetOperPrefix(dest, !adding); } |