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/operchans.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/operchans.cpp') diff --git a/modules/operchans.cpp b/modules/operchans.cpp index 882773813..7c2e542bf 100644 --- a/modules/operchans.cpp +++ b/modules/operchans.cpp @@ -35,7 +35,7 @@ class OperAccountExtBan final : public ExtBan::MatchingBase { public: - OperAccountExtBan(Module* Creator) + OperAccountExtBan(const WeakModulePtr& Creator) : ExtBan::MatchingBase(Creator, "oper", 'o') { } @@ -57,7 +57,7 @@ class OperTypeExtBan final : public ExtBan::MatchingBase { public: - OperTypeExtBan(Module* Creator) + OperTypeExtBan(const WeakModulePtr& Creator) : ExtBan::MatchingBase(Creator, "opertype", 'O') { } @@ -86,9 +86,9 @@ private: public: ModuleOperChans() : Module(VF_VENDOR, "Adds channel mode O (operonly) which prevents non-server operators from joining the channel.") - , oc(this, "operonly", 'O', true) - , operaccount(this) - , opertype(this) + , oc(weak_from_this(), "operonly", 'O', true) + , operaccount(weak_from_this()) + , opertype(weak_from_this()) { } -- cgit v1.3.1-10-gc9f91