From eb409fc6eb4dfbf82b6dca5a55577c8d6f4882c5 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 24 Oct 2023 18:00:34 +0100 Subject: [PATCH] When changing the nick of a user on inspircd3 send the expected ts. This should prevent users being renicked if they changed their nick between services sending the renick and the IRCd receiving it. --- modules/protocol/inspircd3.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/protocol/inspircd3.cpp b/modules/protocol/inspircd3.cpp index ad29b56d9..40da697e7 100644 --- a/modules/protocol/inspircd3.cpp +++ b/modules/protocol/inspircd3.cpp @@ -112,6 +112,11 @@ class InspIRCd3Proto : public IRCDProto user->KillInternal(source, buf); } + void SendForceNickChange(User *u, const Anope::string &newnick, time_t when) + { + UplinkSocket::Message() << "SVSNICK " << u->GetUID() << " " << newnick << " " << when << " " << u->timestamp; + } + void SendGlobalNotice(BotInfo *bi, const Server *dest, const Anope::string &msg) anope_override { UplinkSocket::Message(bi) << "NOTICE $" << dest->GetName() << " :" << msg;