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/restrictmsg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/restrictmsg.cpp') diff --git a/modules/restrictmsg.cpp b/modules/restrictmsg.cpp index 2f37a1382..f880021a6 100644 --- a/modules/restrictmsg.cpp +++ b/modules/restrictmsg.cpp @@ -55,7 +55,7 @@ private: public: ModuleRestrictMsg() : Module(VF_VENDOR, "Prevents users who are not server operators from messaging each other.") - , CTCTags::EventListener(this) + , CTCTags::EventListener(weak_from_this()) { } -- cgit v1.3.1-10-gc9f91