diff options
| author | 2026-03-28 21:32:23 +0000 | |
|---|---|---|
| committer | 2026-03-29 00:42:15 +0000 | |
| commit | cbc5431d62e3fe9166f18395dce3ddf2af0906d3 (patch) | |
| tree | 48a87fc27dc4826ce0caf4071e2060a9ff9e24c5 /modules/securelist.cpp | |
| parent | Move service code from base to its own header. (diff) | |
Switch modules from reference<> to shared_ptr<> and weak_ptr<>.
Diffstat (limited to 'modules/securelist.cpp')
| -rw-r--r-- | modules/securelist.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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, "<securehost:exception> is a required field at " + tag->source.str()); + throw ModuleException(weak_from_this(), "<securehost:exception> is a required field at " + tag->source.str()); newallows.push_back(host); } |
