aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_services.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-11-05 19:03:42 +0000
committerGravatar Sadie Powell2023-11-05 19:03:42 +0000
commit94dbb3872a43eeb0130ef5c0e1eaf44cfa5a61e5 (patch)
treea15eb073803830c8ee66675a414b63c87d4e9935 /src/modules/m_services.cpp
parentMerge branch 'insp3' into master. (diff)
parentWhen 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.cpp11
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