diff options
author | Adam <Adam@anope.org> | 2016-09-07 16:08:28 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2017-05-17 18:02:30 -0400 |
commit | 692865acd58c9a475db1fdf4d419188325cd2182 (patch) | |
tree | 319c68e872dfe56a3d9f0435136b02b2f9a3211e /src/modules | |
parent | 41ef94bebb0fcb358150ff0179c6c55104827683 (diff) |
m_cloaking: don't apply cloak to already cloaked users during registration
This can happen if services set a vhost during registration (like with
SASL)
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_cloaking.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp index 1bf99f919..f4cfdb54f 100644 --- a/src/modules/m_cloaking.cpp +++ b/src/modules/m_cloaking.cpp @@ -96,6 +96,10 @@ class CloakUser : public ModeHandler if (adding) { + // assume this is more correct + if (user->registered != REG_ALL && user->host != user->dhost) + return MODEACTION_DENY; + std::string* cloak = ext.get(user); if (!cloak) |