aboutsummaryrefslogtreecommitdiffstats
path: root/modules/operchans.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-03-28 21:32:23 +0000
committerGravatar Sadie Powell2026-03-29 00:42:15 +0000
commitcbc5431d62e3fe9166f18395dce3ddf2af0906d3 (patch)
tree48a87fc27dc4826ce0caf4071e2060a9ff9e24c5 /modules/operchans.cpp
parentMove service code from base to its own header. (diff)
Switch modules from reference<> to shared_ptr<> and weak_ptr<>.
Diffstat (limited to 'modules/operchans.cpp')
-rw-r--r--modules/operchans.cpp10
1 files changed, 5 insertions, 5 deletions
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())
{
}