aboutsummaryrefslogtreecommitdiffstats
path: root/modules/hostcycle.cpp
diff options
context:
space:
mode:
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")
{