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/hostcycle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/hostcycle.cpp') diff --git a/modules/hostcycle.cpp b/modules/hostcycle.cpp index d9af979f4..392ba9274 100644 --- a/modules/hostcycle.cpp +++ b/modules/hostcycle.cpp @@ -94,7 +94,7 @@ class ModuleHostCycle final public: ModuleHostCycle() : Module(VF_VENDOR, "Sends a fake disconnection and reconnection when a user's username or hostname changes to allow clients to update their internal caches.") - , chghostcap(this, "chghost") + , chghostcap(weak_from_this(), "chghost") , quitmsghost("Changing hostname") , quitmsguser("Changing username") { -- cgit v1.3.1-10-gc9f91