diff options
| author | 2023-11-05 19:03:42 +0000 | |
|---|---|---|
| committer | 2023-11-05 19:03:42 +0000 | |
| commit | 94dbb3872a43eeb0130ef5c0e1eaf44cfa5a61e5 (patch) | |
| tree | a15eb073803830c8ee66675a414b63c87d4e9935 /src/modules/m_services.cpp | |
| parent | Merge branch 'insp3' into master. (diff) | |
| parent | When copying a message also copy the source string. (diff) | |
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules/m_services.cpp')
| -rw-r--r-- | src/modules/m_services.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/modules/m_services.cpp b/src/modules/m_services.cpp index 754008aa0..e7ef487cf 100644 --- a/src/modules/m_services.cpp +++ b/src/modules/m_services.cpp @@ -124,6 +124,12 @@ public: { } + void Apply(User* u) override + { + u->WriteNumeric(RPL_SAVENICK, u->nick, INSP_FORMAT("Services reserved nickname: {}", reason)); + u->ChangeNick(u->uuid); + } + const std::string& Displayable() const override { return nickname; @@ -158,11 +164,6 @@ public: { return new SVSHold(settime, duration, source, reason, nick); } - - bool AutoApplyToUserList(XLine* x) override - { - return false; - } }; class CommandSVSHold final |
