diff options
| author | 2020-12-04 18:18:07 +0000 | |
|---|---|---|
| committer | 2020-12-04 18:44:40 +0000 | |
| commit | 3ab889537fb4c7b5b3507562563eec8211d0cc58 (patch) | |
| tree | 254ba171bfe3c8d0ebd4826cc2d51c7befbd6fc2 /src/modules/m_ldapoper.cpp | |
| parent | Move ban checking to core_channel. (diff) | |
| parent | Improve the logging of service adding/deleting. (diff) | |
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules/m_ldapoper.cpp')
| -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 d703b73eb..d50b9664c 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) |
