diff options
| author | 2026-03-28 21:32:23 +0000 | |
|---|---|---|
| committer | 2026-03-29 00:42:15 +0000 | |
| commit | cbc5431d62e3fe9166f18395dce3ddf2af0906d3 (patch) | |
| tree | 48a87fc27dc4826ce0caf4071e2060a9ff9e24c5 /modules/watch.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/watch.cpp')
| -rw-r--r-- | modules/watch.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/watch.cpp b/modules/watch.cpp index 119a5a6d0..9d1d004f8 100644 --- a/modules/watch.cpp +++ b/modules/watch.cpp @@ -126,7 +126,7 @@ class CommandWatch final public: unsigned long maxwatch; - CommandWatch(Module* mod, IRCv3::Monitor::Manager& managerref) + CommandWatch(const WeakModulePtr& mod, IRCv3::Monitor::Manager& managerref) : SplitCommand(mod, "WATCH") , manager(managerref) { @@ -212,10 +212,10 @@ private: public: ModuleWatch() : Module(VF_VENDOR, "Adds the /WATCH command which allows users to find out when their friends are connected to the server.") - , Away::EventListener(this) - , ISupport::EventListener(this) - , manager(this, "watch") - , cmd(this, manager) + , Away::EventListener(weak_from_this()) + , ISupport::EventListener(weak_from_this()) + , manager(weak_from_this(), "watch") + , cmd(weak_from_this(), manager) { } |
