summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2023-10-24 18:00:34 +0100
committerSadie Powell <sadie@witchery.services>2023-10-24 18:00:34 +0100
commiteb409fc6eb4dfbf82b6dca5a55577c8d6f4882c5 (patch)
treedb67d08217bad7c362097893e85b6e099ed365a2 /modules
parent97fa6d84bcb70b3b87d3fd7cc14f3b2567ca4e11 (diff)
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.
Diffstat (limited to 'modules')
-rw-r--r--modules/protocol/inspircd3.cpp5
1 files changed, 5 insertions, 0 deletions
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;