Skip to content

Commit

Permalink
Merge pull request #1284 from Adam-/insp20+preregcloak
Browse files Browse the repository at this point in the history
m_cloaking: don't apply cloak to already cloaked users during registration
  • Loading branch information
Adam- committed May 17, 2017
2 parents eafabe1 + 692865a commit d8c72fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/m_cloaking.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d8c72fd

Please sign in to comment.