diff options
| author | 2026-03-28 21:32:23 +0000 | |
|---|---|---|
| committer | 2026-03-29 00:42:15 +0000 | |
| commit | cbc5431d62e3fe9166f18395dce3ddf2af0906d3 (patch) | |
| tree | 48a87fc27dc4826ce0caf4071e2060a9ff9e24c5 /modules/anticaps.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/anticaps.cpp')
| -rw-r--r-- | modules/anticaps.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/anticaps.cpp b/modules/anticaps.cpp index fa661a66e..68f7cd1e4 100644 --- a/modules/anticaps.cpp +++ b/modules/anticaps.cpp @@ -108,7 +108,7 @@ class AntiCapsMode final : public ParamMode<AntiCapsMode, SimpleExtItem<AntiCapsSettings>> { public: - AntiCapsMode(Module* Creator) + AntiCapsMode(const WeakModulePtr& Creator) : ParamMode<AntiCapsMode, SimpleExtItem<AntiCapsSettings>>(Creator, "anticaps", 'B') { syntax = "{ban|block|mute|kick|kickban}:<minlen>:<percent>"; @@ -190,9 +190,9 @@ private: public: ModuleAntiCaps() : Module(VF_VENDOR | VF_COMMON, "Adds channel mode B (anticaps) which allows channels to block messages which are excessively capitalised.") - , banmode(this, "ban") - , exemptionprov(this) - , mode(this) + , banmode(weak_from_this(), "ban") + , exemptionprov(weak_from_this()) + , mode(weak_from_this()) { } |
