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/joinflood.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/joinflood.cpp') diff --git a/modules/joinflood.cpp b/modules/joinflood.cpp index 90c3c844d..783ed6f9e 100644 --- a/modules/joinflood.cpp +++ b/modules/joinflood.cpp @@ -97,7 +97,7 @@ class JoinFlood final : public ParamMode> { public: - JoinFlood(Module* Creator) + JoinFlood(const WeakModulePtr& Creator) : ParamMode>(Creator, "joinflood", 'j') { syntax = ":"; @@ -146,8 +146,8 @@ private: public: ModuleJoinFlood() : Module(VF_VENDOR, "Adds channel mode j (joinflood) which helps protect against spammers which mass-join channels.") - , ServerProtocol::LinkEventListener(this) - , jf(this) + , ServerProtocol::LinkEventListener(weak_from_this()) + , jf(weak_from_this()) { } -- cgit v1.3.1-10-gc9f91