diff options
| author | 2022-05-17 20:06:21 +0100 | |
|---|---|---|
| committer | 2022-05-17 20:06:21 +0100 | |
| commit | 04fba25ada45f787ff6c93f813912b81a257538a (patch) | |
| tree | 21488fabaaa50e27f47764b8d8c29963924cf7fb /src/modules/m_spanningtree/netburst.cpp | |
| parent | Fix an oversight in commit 3be039e. (diff) | |
Deprecate the (raw)version SINFO keys and split out customversion/rawbranch.
Diffstat (limited to 'src/modules/m_spanningtree/netburst.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/netburst.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/modules/m_spanningtree/netburst.cpp b/src/modules/m_spanningtree/netburst.cpp index d4f4c588c..7c49c58a6 100644 --- a/src/modules/m_spanningtree/netburst.cpp +++ b/src/modules/m_spanningtree/netburst.cpp @@ -124,14 +124,17 @@ void TreeSocket::DoBurst(TreeServer* s) void TreeSocket::SendServerInfo(TreeServer* from) { - // Send public version string - this->WriteLine(CommandSInfo::Builder(from, "version", from->GetVersion())); + this->WriteLine(CommandSInfo::Builder(from, "customversion", from->customversion)); + this->WriteLine(CommandSInfo::Builder(from, "rawbranch", from->rawbranch)); + this->WriteLine(CommandSInfo::Builder(from, "rawversion", from->rawversion)); - // Send full version string that contains more information and is shown to opers - this->WriteLine(CommandSInfo::Builder(from, "fullversion", from->GetFullVersion())); - - // Send the raw version string that just contains the base info - this->WriteLine(CommandSInfo::Builder(from, "rawversion", from->GetRawVersion())); + if (proto_version < PROTO_INSPIRCD_4) + { + this->WriteLine(CommandSInfo::Builder(from, "version", InspIRCd::Format("%s. %s :%s", from->rawbranch.c_str(), + from->GetPublicName().c_str(), from->customversion.c_str()))); + this->WriteLine(CommandSInfo::Builder(from, "fullversion", InspIRCd::Format("%s. %s :[%s] %s", from->rawversion.c_str(), + from->GetName().c_str(), from->GetId().c_str(), from->customversion.c_str()))); + } } /** Recursively send the server tree. |
