diff options
| author | 2026-03-28 21:32:23 +0000 | |
|---|---|---|
| committer | 2026-03-29 00:42:15 +0000 | |
| commit | cbc5431d62e3fe9166f18395dce3ddf2af0906d3 (patch) | |
| tree | 48a87fc27dc4826ce0caf4071e2060a9ff9e24c5 /modules/inviteexception.cpp | |
| parent | Move service code from base to its own header. (diff) | |
Switch modules from reference<> to shared_ptr<> and weak_ptr<>.
Diffstat (limited to 'modules/inviteexception.cpp')
| -rw-r--r-- | modules/inviteexception.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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()) { } |
