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/commonchans.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/commonchans.cpp') diff --git a/modules/commonchans.cpp b/modules/commonchans.cpp index 4ca7511f5..44b5022f3 100644 --- a/modules/commonchans.cpp +++ b/modules/commonchans.cpp @@ -64,9 +64,9 @@ private: public: ModuleCommonChans() : Module(VF_VENDOR, "Adds user mode c (deaf_commonchan) which requires users to have a common channel before they can privately message each other.") - , CTCTags::EventListener(this) - , calleridapi(this) - , mode(this, "deaf_commonchan", 'c') + , CTCTags::EventListener(weak_from_this()) + , calleridapi(weak_from_this()) + , mode(weak_from_this(), "deaf_commonchan", 'c') { } -- cgit v1.3.1-10-gc9f91