From cbc5431d62e3fe9166f18395dce3ddf2af0906d3 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 28 Mar 2026 21:32:23 +0000 Subject: Switch modules from reference<> to shared_ptr<> and weak_ptr<>. --- modules/ident.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/ident.cpp') 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) { -- cgit v1.3.1-10-gc9f91