aboutsummaryrefslogtreecommitdiffstats
path: root/modules/hostcycle.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-03-28 21:32:23 +0000
committerGravatar Sadie Powell2026-03-29 00:42:15 +0000
commitcbc5431d62e3fe9166f18395dce3ddf2af0906d3 (patch)
tree48a87fc27dc4826ce0caf4071e2060a9ff9e24c5 /modules/hostcycle.cpp
parentMove service code from base to its own header. (diff)
Switch modules from reference<> to shared_ptr<> and weak_ptr<>.
Diffstat (limited to 'modules/hostcycle.cpp')
-rw-r--r--modules/hostcycle.cpp2
1 files changed, 1 insertions, 1 deletions
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")
{