diff options
| author | 2023-01-07 04:36:31 +0000 | |
|---|---|---|
| committer | 2023-01-07 04:36:31 +0000 | |
| commit | 9e985f59795bcb9857b82bbcd3ff548699f57462 (patch) | |
| tree | 70cdc88de34c5c0414af17fcc7e8fcde5eec22e9 /src/modules | |
| parent | Add a helper class for creating a reference to a DNS manager. (diff) | |
Add some overloads of Find{Nick,UUID,} for local/remote users.
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/m_dnsbl.cpp | 4 | ||||
| -rw-r--r-- | src/modules/m_ldapauth.cpp | 2 | ||||
| -rw-r--r-- | src/modules/m_sqlauth.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_dnsbl.cpp b/src/modules/m_dnsbl.cpp index 85480d3b5..63426cc6e 100644 --- a/src/modules/m_dnsbl.cpp +++ b/src/modules/m_dnsbl.cpp @@ -226,7 +226,7 @@ public: void OnLookupComplete(const DNS::Query* r) override { /* Check the user still exists */ - LocalUser* them = IS_LOCAL(ServerInstance->Users.FindUUID(uuid)); + LocalUser* them = ServerInstance->Users.FindUUID<LocalUser>(uuid); if (!them || them->client_sa != sa) { config->stats_misses++; @@ -358,7 +358,7 @@ public: break; } - LocalUser* them = IS_LOCAL(ServerInstance->Users.FindUUID(uuid)); + LocalUser* them = ServerInstance->Users.FindUUID<LocalUser>(uuid); if (!them || them->client_sa != sa) return; diff --git a/src/modules/m_ldapauth.cpp b/src/modules/m_ldapauth.cpp index af8b03ee9..6113d5c55 100644 --- a/src/modules/m_ldapauth.cpp +++ b/src/modules/m_ldapauth.cpp @@ -224,7 +224,7 @@ public: void OnResult(const LDAPResult& r) override { - LocalUser* user = IS_LOCAL(ServerInstance->Users.FindUUID(uid)); + LocalUser* user = ServerInstance->Users.FindUUID<LocalUser>(uid); dynamic_reference<LDAPProvider> LDAP(me, provider); if (!LDAP || r.empty() || !user) { diff --git a/src/modules/m_sqlauth.cpp b/src/modules/m_sqlauth.cpp index 2af7d6d79..a92ce231d 100644 --- a/src/modules/m_sqlauth.cpp +++ b/src/modules/m_sqlauth.cpp @@ -58,7 +58,7 @@ public: void OnResult(SQL::Result& res) override { - LocalUser* user = IS_LOCAL(ServerInstance->Users.FindUUID(uid)); + LocalUser* user = ServerInstance->Users.FindUUID<LocalUser>(uid); if (!user) return; |
