diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_spanningtree/netburst.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_spanningtree/sinfo.cpp | 4 |
2 files changed, 5 insertions, 1 deletions
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::vector<std::string { server->SetFullVersion(value); } + else if (key == "version") + { + server->SetVersion(value); + } return CMD_SUCCESS; } |