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/dccallow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/dccallow.cpp') diff --git a/modules/dccallow.cpp b/modules/dccallow.cpp index f17919f75..d7dcc372d 100644 --- a/modules/dccallow.cpp +++ b/modules/dccallow.cpp @@ -114,7 +114,7 @@ class DCCAllowExt final public: unsigned long maxentries; - DCCAllowExt(Module* Creator) + DCCAllowExt(const WeakModulePtr& Creator) : SimpleExtItem(Creator, "dccallow", ExtensionType::USER) { } @@ -196,7 +196,7 @@ class CommandDccallow final public: DCCAllowExt& ext; unsigned long defaultlength; - CommandDccallow(Module* parent, DCCAllowExt& Ext) + CommandDccallow(const WeakModulePtr& parent, DCCAllowExt& Ext) : Command(parent, "DCCALLOW", 0) , ext(Ext) { @@ -386,8 +386,8 @@ private: public: ModuleDCCAllow() : Module(VF_VENDOR | VF_COMMON, "Allows the server administrator to configure what files are allowed to be sent via DCC SEND and allows users to configure who can send them DCC CHAT and DCC SEND requests.") - , ext(this) - , cmd(this, ext) + , ext(weak_from_this()) + , cmd(weak_from_this(), ext) { } -- cgit v1.3.1-10-gc9f91