From 92bc6a513b12fd2b4425aac6c93ccb82c15d611f Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Tue, 17 Jun 2014 13:36:10 +0200 Subject: m_spanningtree Exchange public server version strings via SINFO instead of VERSION --- src/modules/m_spanningtree/netburst.cpp | 2 +- src/modules/m_spanningtree/sinfo.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src/modules') diff --git a/src/modules/m_spanningtree/netburst.cpp b/src/modules/m_spanningtree/netburst.cpp index ffc0a7e11..ed2bd0756 100644 --- a/src/modules/m_spanningtree/netburst.cpp +++ b/src/modules/m_spanningtree/netburst.cpp @@ -128,7 +128,7 @@ void TreeSocket::DoBurst(TreeServer* s) void TreeSocket::SendServerInfo(TreeServer* from) { // Send public version string - this->WriteLine(CmdBuilder(from->GetID(), "VERSION").push_last(from->GetVersion())); + this->WriteLine(CommandSInfo::Builder(from, "version", from->GetVersion())); // Send full version string that contains more information and is shown to opers this->WriteLine(CommandSInfo::Builder(from, "fullversion", from->GetFullVersion())); diff --git a/src/modules/m_spanningtree/sinfo.cpp b/src/modules/m_spanningtree/sinfo.cpp index 1934e0a30..76697a496 100644 --- a/src/modules/m_spanningtree/sinfo.cpp +++ b/src/modules/m_spanningtree/sinfo.cpp @@ -30,6 +30,10 @@ CmdResult CommandSInfo::HandleServer(TreeServer* server, std::vectorSetFullVersion(value); } + else if (key == "version") + { + server->SetVersion(value); + } return CMD_SUCCESS; } -- cgit v1.2.3