aboutsummaryrefslogtreecommitdiffstats
path: root/modules/commonchans.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/commonchans.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/commonchans.cpp')
-rw-r--r--modules/commonchans.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/commonchans.cpp b/modules/commonchans.cpp
index 4ca7511f5..44b5022f3 100644
--- a/modules/commonchans.cpp
+++ b/modules/commonchans.cpp
@@ -64,9 +64,9 @@ private:
public:
ModuleCommonChans()
: Module(VF_VENDOR, "Adds user mode c (deaf_commonchan) which requires users to have a common channel before they can privately message each other.")
- , CTCTags::EventListener(this)
- , calleridapi(this)
- , mode(this, "deaf_commonchan", 'c')
+ , CTCTags::EventListener(weak_from_this())
+ , calleridapi(weak_from_this())
+ , mode(weak_from_this(), "deaf_commonchan", 'c')
{
}