summaryrefslogtreecommitdiff
path: root/src/modules/m_ldapoper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_ldapoper.cpp')
-rw-r--r--src/modules/m_ldapoper.cpp3
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)