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/securelist.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/securelist.cpp') diff --git a/modules/securelist.cpp b/modules/securelist.cpp index 23f245f7f..d32b40bbd 100644 --- a/modules/securelist.cpp +++ b/modules/securelist.cpp @@ -75,8 +75,8 @@ private: public: ModuleSecureList() : Module(VF_VENDOR, "Prevents users from using the /LIST command until a predefined period has passed.") - , ISupport::EventListener(this) - , accountapi(this) + , ISupport::EventListener(weak_from_this()) + , accountapi(weak_from_this()) { } @@ -87,7 +87,7 @@ public: { const std::string host = tag->getString("exception"); if (host.empty()) - throw ModuleException(this, " is a required field at " + tag->source.str()); + throw ModuleException(weak_from_this(), " is a required field at " + tag->source.str()); newallows.push_back(host); } -- cgit v1.3.1-10-gc9f91