From eb409fc6eb4dfbf82b6dca5a55577c8d6f4882c5 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 24 Oct 2023 18:00:34 +0100 Subject: 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(+) (limited to 'modules/protocol') 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; -- cgit From 1eba69d0352b8396de19ab0b19f3aa7d2eb2ef87 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 24 Oct 2023 18:10:32 +0100 Subject: Fix a missing override keyword. --- modules/protocol/inspircd3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/protocol') diff --git a/modules/protocol/inspircd3.cpp b/modules/protocol/inspircd3.cpp index 40da697e7..79db757ea 100644 --- a/modules/protocol/inspircd3.cpp +++ b/modules/protocol/inspircd3.cpp @@ -112,7 +112,7 @@ class InspIRCd3Proto : public IRCDProto user->KillInternal(source, buf); } - void SendForceNickChange(User *u, const Anope::string &newnick, time_t when) + void SendForceNickChange(User *u, const Anope::string &newnick, time_t when) anope_override { UplinkSocket::Message() << "SVSNICK " << u->GetUID() << " " << newnick << " " << when << " " << u->timestamp; } -- cgit