diff options
| author | 2026-03-28 21:32:23 +0000 | |
|---|---|---|
| committer | 2026-03-29 00:42:15 +0000 | |
| commit | cbc5431d62e3fe9166f18395dce3ddf2af0906d3 (patch) | |
| tree | 48a87fc27dc4826ce0caf4071e2060a9ff9e24c5 /modules/auditorium.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/auditorium.cpp')
| -rw-r--r-- | modules/auditorium.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/auditorium.cpp b/modules/auditorium.cpp index ba1118aa2..ced1550a1 100644 --- a/modules/auditorium.cpp +++ b/modules/auditorium.cpp @@ -33,7 +33,7 @@ class AuditoriumMode final : public SimpleChannelMode { public: - AuditoriumMode(Module* Creator) + AuditoriumMode(const WeakModulePtr& Creator) : SimpleChannelMode(Creator, "auditorium", 'u') { ranktoset = ranktounset = OP_VALUE; @@ -80,11 +80,11 @@ class ModuleAuditorium final public: ModuleAuditorium() : Module(VF_VENDOR, "Adds channel mode u (auditorium) which hides unprivileged users in a channel from each other.") - , Names::EventListener(this) - , Who::EventListener(this) - , Who::VisibleEventListener(this) - , exemptionprov(this) - , aum(this) + , Names::EventListener(weak_from_this()) + , Who::EventListener(weak_from_this()) + , Who::VisibleEventListener(weak_from_this()) + , exemptionprov(weak_from_this()) + , aum(weak_from_this()) , joinhook(this) { } @@ -199,7 +199,7 @@ public: }; JoinHook::JoinHook(ModuleAuditorium* mod) - : ClientProtocol::EventHook(mod, "JOIN", 10) + : ClientProtocol::EventHook(mod->weak_from_this(), "JOIN", 10) , parentmod(mod) { } |
