aboutsummaryrefslogtreecommitdiffstats
path: root/modules/banexception.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-03-28 21:32:23 +0000
committerGravatar Sadie Powell2026-03-29 00:42:15 +0000
commitcbc5431d62e3fe9166f18395dce3ddf2af0906d3 (patch)
tree48a87fc27dc4826ce0caf4071e2060a9ff9e24c5 /modules/banexception.cpp
parentMove service code from base to its own header. (diff)
Switch modules from reference<> to shared_ptr<> and weak_ptr<>.
Diffstat (limited to 'modules/banexception.cpp')
-rw-r--r--modules/banexception.cpp8
1 files changed, 4 insertions, 4 deletions
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())
{
}