summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <adam@sigterm.info>2017-05-17 18:02:54 -0400
committerGitHub <noreply@github.com>2017-05-17 18:02:54 -0400
commitd8c72fd7af539cf0a2759740126e020b9ea2eb86 (patch)
treefb010abe7b3fc585b66987b39eb5cfb8ddaa0f40
parenteafabe15d68c0ea587432ae787b7cad0de0c02dd (diff)
parent692865acd58c9a475db1fdf4d419188325cd2182 (diff)
Merge pull request #1284 from Adam-/insp20+preregcloak
m_cloaking: don't apply cloak to already cloaked users during registration
-rw-r--r--src/modules/m_cloaking.cpp4
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)