aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ident.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-03-28 21:32:23 +0000
committerGravatar Sadie Powell2026-03-29 00:42:15 +0000
commitcbc5431d62e3fe9166f18395dce3ddf2af0906d3 (patch)
tree48a87fc27dc4826ce0caf4071e2060a9ff9e24c5 /modules/ident.cpp
parentMove service code from base to its own header. (diff)
Switch modules from reference<> to shared_ptr<> and weak_ptr<>.
Diffstat (limited to 'modules/ident.cpp')
-rw-r--r--modules/ident.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/ident.cpp b/modules/ident.cpp
index da84227c2..3a929332e 100644
--- a/modules/ident.cpp
+++ b/modules/ident.cpp
@@ -111,7 +111,7 @@ public:
time_t age;
bool done; /* True if lookup is finished */
- IdentRequestSocket(const Module* mod, LocalUser* luser)
+ IdentRequestSocket(const WeakModulePtr& mod, LocalUser* luser)
: user(luser)
{
age = ServerInstance->Time();
@@ -302,8 +302,8 @@ private:
public:
ModuleIdent()
: Module(VF_VENDOR, "Allows the usernames of users to be looked up using the RFC 1413 Identification Protocol.")
- , socket(this, "ident-socket", ExtensionType::USER)
- , state(this, "ident-state", ExtensionType::USER)
+ , socket(weak_from_this(), "ident-socket", ExtensionType::USER)
+ , state(weak_from_this(), "ident-state", ExtensionType::USER)
{
}
@@ -342,7 +342,7 @@ public:
try
{
- socket.SetFwd(user, this, user);
+ socket.SetFwd(user, weak_from_this(), user);
}
catch (const ModuleException& e)
{