From 48dbb70ecc8fc9089030e28b07dadf0a95c54789 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sat, 30 Mar 2019 13:41:51 +0000 Subject: [PATCH] Use the SINFO command instead of the old VERSION command. --- modules/protocol/inspircd3.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/protocol/inspircd3.cpp b/modules/protocol/inspircd3.cpp index 872e0a249..15153bfad 100644 --- a/modules/protocol/inspircd3.cpp +++ b/modules/protocol/inspircd3.cpp @@ -366,7 +366,9 @@ class InspIRCd3Proto : public IRCDProto { UplinkSocket::Message(Me) << "BURST " << Anope::CurTime; Module *enc = ModuleManager::FindFirstOf(ENCRYPTION); - UplinkSocket::Message(Me) << "VERSION :Anope-" << Anope::Version() << " " << Me->GetName() << " :" << IRCD->GetProtocolName() << " - (" << (enc ? enc->name : "none") << ") -- " << Anope::VersionBuildString(); + UplinkSocket::Message(Me) << "SINFO version :Anope-" << Anope::Version() << " " << Me->GetName() << " :" << IRCD->GetProtocolName() << " - (" << (enc ? enc->name : "none") << ") -- " << Anope::VersionBuildString(); + UplinkSocket::Message(Me) << "SINFO fullversion :Anope-" << Anope::Version() << " " << Me->GetName() << " :[" << Me->GetSID() << "] " << IRCD->GetProtocolName() << " - (" << (enc ? enc->name : "none") << ") -- " << Anope::VersionBuildString(); + UplinkSocket::Message(Me) << "SINFO rawversion :Anope-" << Anope::VersionShort(); } void SendEOB() anope_override