From 692865acd58c9a475db1fdf4d419188325cd2182 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 7 Sep 2016 16:08:28 -0400 Subject: 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) --- src/modules/m_cloaking.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/modules') 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) -- cgit v1.2.3