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/anticaps.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/anticaps.cpp') diff --git a/modules/anticaps.cpp b/modules/anticaps.cpp index fa661a66e..68f7cd1e4 100644 --- a/modules/anticaps.cpp +++ b/modules/anticaps.cpp @@ -108,7 +108,7 @@ class AntiCapsMode final : public ParamMode> { public: - AntiCapsMode(Module* Creator) + AntiCapsMode(const WeakModulePtr& Creator) : ParamMode>(Creator, "anticaps", 'B') { syntax = "{ban|block|mute|kick|kickban}::"; @@ -190,9 +190,9 @@ private: public: ModuleAntiCaps() : Module(VF_VENDOR | VF_COMMON, "Adds channel mode B (anticaps) which allows channels to block messages which are excessively capitalised.") - , banmode(this, "ban") - , exemptionprov(this) - , mode(this) + , banmode(weak_from_this(), "ban") + , exemptionprov(weak_from_this()) + , mode(weak_from_this()) { } -- cgit v1.3.1-10-gc9f91