diff options
| author | 2026-03-28 21:32:23 +0000 | |
|---|---|---|
| committer | 2026-03-29 00:42:15 +0000 | |
| commit | cbc5431d62e3fe9166f18395dce3ddf2af0906d3 (patch) | |
| tree | 48a87fc27dc4826ce0caf4071e2060a9ff9e24c5 /modules/botmode.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/botmode.cpp')
| -rw-r--r-- | modules/botmode.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/botmode.cpp b/modules/botmode.cpp index c56907603..f9d39e10d 100644 --- a/modules/botmode.cpp +++ b/modules/botmode.cpp @@ -34,7 +34,7 @@ private: SimpleUserMode& botmode; public: - BotTag(Module* mod, SimpleUserMode& bm) + BotTag(const WeakModulePtr& mod, SimpleUserMode& bm) : CTCTags::TagProvider(mod) , botmode(bm) { @@ -62,11 +62,11 @@ private: public: ModuleBotMode() : Module(VF_VENDOR, "Adds user mode B (bot) which marks users with it set as bots.") - , ISupport::EventListener(this) - , Who::EventListener(this) - , Whois::EventListener(this) - , bm(this, "bot", 'B') - , tag(this, bm) + , ISupport::EventListener(weak_from_this()) + , Who::EventListener(weak_from_this()) + , Whois::EventListener(weak_from_this()) + , bm(weak_from_this(), "bot", 'B') + , tag(weak_from_this(), bm) { } |
