aboutsummaryrefslogtreecommitdiffstats
path: root/modules/timedbans.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/timedbans.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/timedbans.cpp')
-rw-r--r--modules/timedbans.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/timedbans.cpp b/modules/timedbans.cpp
index facd63888..6752c0c94 100644
--- a/modules/timedbans.cpp
+++ b/modules/timedbans.cpp
@@ -75,7 +75,7 @@ private:
public:
bool sendnotice;
- CommandTban(Module* Creator)
+ CommandTban(const WeakModulePtr& Creator)
: Command(Creator, "TBAN", 3)
, banmode(Creator, "ban")
, extbanmgr(Creator)
@@ -172,7 +172,7 @@ class BanWatcher final
: public ModeWatcher
{
public:
- BanWatcher(Module* parent)
+ BanWatcher(const WeakModulePtr& parent)
: ModeWatcher(parent, "ban", MODETYPE_CHANNEL)
{
}
@@ -208,9 +208,9 @@ private:
public:
ModuleTimedBans()
: Module(VF_VENDOR | VF_COMMON, "Adds the /TBAN command which allows channel operators to add bans which will be expired after the specified period.")
- , banmode(this, "ban")
- , cmd(this)
- , banwatcher(this)
+ , banmode(weak_from_this(), "ban")
+ , cmd(weak_from_this())
+ , banwatcher(weak_from_this())
{
}