diff options
author | Christos Triantafyllidis <ctria@users.noreply.github.com> | 2020-12-03 01:25:47 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-03 01:25:47 +0000 |
commit | d71c37e05911d87830987a09128a178c3e402bb4 (patch) | |
tree | 0c1e20aa53224713519c3d763c953ddbbc8a8028 | |
parent | b8320846cfc4f942ac188e8f46df111fd72054df (diff) |
Check the ident when checking against IP in ldapoper (#1823)
-rw-r--r-- | src/modules/m_ldapoper.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_ldapoper.cpp b/src/modules/m_ldapoper.cpp index 92a47f3b4..88baf84f3 100644 --- a/src/modules/m_ldapoper.cpp +++ b/src/modules/m_ldapoper.cpp @@ -222,8 +222,7 @@ class ModuleLDAPOper : public Module return MOD_RES_PASSTHRU; std::string acceptedhosts = tag->getString("host"); - std::string hostname = user->ident + "@" + user->GetRealHost(); - if (!InspIRCd::MatchMask(acceptedhosts, hostname, user->GetIPString())) + if (!InspIRCd::MatchMask(acceptedhosts, user->MakeHost(), user->MakeHostIP())) return MOD_RES_PASSTHRU; if (!LDAP) |