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/inviteexception.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/inviteexception.cpp') diff --git a/modules/inviteexception.cpp b/modules/inviteexception.cpp index e79690d33..b4eb2dbd8 100644 --- a/modules/inviteexception.cpp +++ b/modules/inviteexception.cpp @@ -40,7 +40,7 @@ private: ExtBan::ManagerRef extbanmgr; public: - InviteException(Module* Creator) + InviteException(const WeakModulePtr& Creator) : ListModeBase(Creator, "invex", 'I', RPL_INVEXLIST, RPL_ENDOFINVEXLIST, true) , extbanmgr(Creator) { @@ -82,8 +82,8 @@ private: public: ModuleInviteException() : Module(VF_VENDOR, "Adds channel mode I (invex) which allows channel operators to exempt user masks from channel mode i (inviteonly).") - , ISupport::EventListener(this) - , ie(this) + , ISupport::EventListener(weak_from_this()) + , ie(weak_from_this()) { } -- cgit v1.3.1-10-gc9f91