diff options
| author | 2026-03-28 21:32:23 +0000 | |
|---|---|---|
| committer | 2026-03-29 00:42:15 +0000 | |
| commit | cbc5431d62e3fe9166f18395dce3ddf2af0906d3 (patch) | |
| tree | 48a87fc27dc4826ce0caf4071e2060a9ff9e24c5 /modules/setname.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/setname.cpp')
| -rw-r--r-- | modules/setname.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/setname.cpp b/modules/setname.cpp index 88bf27ae3..22a743269 100644 --- a/modules/setname.cpp +++ b/modules/setname.cpp @@ -35,7 +35,7 @@ public: Cap::Capability cap; bool notifyopers; - CommandSetName(Module* mod) + CommandSetName(const WeakModulePtr& mod) : Command(mod, "SETNAME", 1, 2) , banmode(mod, "ban") , cap(mod, "setname") @@ -126,9 +126,9 @@ private: public: ModuleSetName() : Module(VF_VENDOR | VF_OPTCOMMON, "Adds the /SETNAME command which allows users to change their real name.") - , cmd(this) - , setnameevprov(this, "SETNAME") - , monitorapi(this) + , cmd(weak_from_this()) + , setnameevprov(weak_from_this(), "SETNAME") + , monitorapi(weak_from_this()) { } |
