From eb5e3b356cdfa5a68c28b8f641addaad47c12320 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Tue, 17 Jun 2014 13:28:19 +0200 Subject: m_spanningtree Send and receive full version strings via SINFO --- src/modules/m_spanningtree/netburst.cpp | 3 +++ src/modules/m_spanningtree/sinfo.cpp | 5 +++++ 2 files changed, 8 insertions(+) (limited to 'src/modules') diff --git a/src/modules/m_spanningtree/netburst.cpp b/src/modules/m_spanningtree/netburst.cpp index 595d04590..ffc0a7e11 100644 --- a/src/modules/m_spanningtree/netburst.cpp +++ b/src/modules/m_spanningtree/netburst.cpp @@ -129,6 +129,9 @@ void TreeSocket::SendServerInfo(TreeServer* from) { // Send public version string this->WriteLine(CmdBuilder(from->GetID(), "VERSION").push_last(from->GetVersion())); + + // Send full version string that contains more information and is shown to opers + this->WriteLine(CommandSInfo::Builder(from, "fullversion", from->GetFullVersion())); } /** Recursively send the server tree. diff --git a/src/modules/m_spanningtree/sinfo.cpp b/src/modules/m_spanningtree/sinfo.cpp index 71bd48b44..1934e0a30 100644 --- a/src/modules/m_spanningtree/sinfo.cpp +++ b/src/modules/m_spanningtree/sinfo.cpp @@ -26,6 +26,11 @@ CmdResult CommandSInfo::HandleServer(TreeServer* server, std::vectorSetFullVersion(value); + } + return CMD_SUCCESS; } -- cgit v1.2.3