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/cban.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/cban.cpp') diff --git a/modules/cban.cpp b/modules/cban.cpp index 02cfbb6ef..409d084f9 100644 --- a/modules/cban.cpp +++ b/modules/cban.cpp @@ -98,7 +98,7 @@ class CommandCBan final private: IRCv3::ReplyCapReference stdrplcap; public: - CommandCBan(Module* Creator) + CommandCBan(const WeakModulePtr& Creator) : Command(Creator, "CBAN", 1, 3) , stdrplcap(Creator) { @@ -173,8 +173,8 @@ class ModuleCBan final public: ModuleCBan() : Module(VF_VENDOR | VF_COMMON, "Adds the /CBAN command which allows server operators to prevent channels matching a glob from being created.") - , Stats::EventListener(this) - , mycommand(this) + , Stats::EventListener(weak_from_this()) + , mycommand(weak_from_this()) { } -- cgit v1.3.1-10-gc9f91