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/multiprefix.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/multiprefix.cpp') diff --git a/modules/multiprefix.cpp b/modules/multiprefix.cpp index 7d734abad..416ad6bf4 100644 --- a/modules/multiprefix.cpp +++ b/modules/multiprefix.cpp @@ -42,10 +42,10 @@ private: public: ModuleMultiPrefix() : Module(VF_VENDOR, "Provides the IRCv3 multi-prefix client capability.") - , Names::EventListener(this) - , Who::EventListener(this) - , Whois::LineEventListener(this) - , cap(this, "multi-prefix") + , Names::EventListener(weak_from_this()) + , Who::EventListener(weak_from_this()) + , Whois::LineEventListener(weak_from_this()) + , cap(weak_from_this(), "multi-prefix") { } -- cgit v1.3.1-10-gc9f91