1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 00:36:38 +02:00

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.
This commit is contained in:
Sadie Powell
2023-10-24 18:00:34 +01:00
parent 97fa6d84bc
commit eb409fc6eb
+5
View File
@@ -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;