aboutsummaryrefslogtreecommitdiff
path: root/modules/dccallow.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/dccallow.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/dccallow.cpp')
-rw-r--r--modules/dccallow.cpp8
1 files changed, 4 insertions, 4 deletions
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<dccallowlist>(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)
{
}