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/cycle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/cycle.cpp') diff --git a/modules/cycle.cpp b/modules/cycle.cpp index 012e82948..5dbf7b6a7 100644 --- a/modules/cycle.cpp +++ b/modules/cycle.cpp @@ -36,7 +36,7 @@ private: ChanModeReference banmode; public: - CommandCycle(Module* Creator) + CommandCycle(const WeakModulePtr& Creator) : SplitCommand(Creator, "CYCLE", 1) , banmode(Creator, "ban") { @@ -93,7 +93,7 @@ private: public: ModuleCycle() : Module(VF_VENDOR, "Allows channel members to part and rejoin a channel without needing to worry about channel modes such as +i (inviteonly) which might prevent rejoining.") - , cmd(this) + , cmd(weak_from_this()) { } }; -- cgit v1.3.1-10-gc9f91