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/banexception.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/banexception.cpp') diff --git a/modules/banexception.cpp b/modules/banexception.cpp index 2097d6d35..1d79945f6 100644 --- a/modules/banexception.cpp +++ b/modules/banexception.cpp @@ -43,7 +43,7 @@ private: ExtBan::ManagerRef extbanmgr; public: - BanException(Module* Creator) + BanException(const WeakModulePtr& Creator) : ListModeBase(Creator, "banexception", 'e', RPL_EXCEPTLIST, RPL_ENDOFEXCEPTLIST, true) , extbanmgr(Creator) { @@ -85,9 +85,9 @@ private: public: ModuleBanException() : Module(VF_VENDOR, "Adds channel mode e (banexception) which allows channel operators to exempt user masks from channel mode b (ban).") - , ExtBan::EventListener(this) - , ISupport::EventListener(this) - , be(this) + , ExtBan::EventListener(weak_from_this()) + , ISupport::EventListener(weak_from_this()) + , be(weak_from_this()) { } -- cgit v1.3.1-10-gc9f91