diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-06-17 13:36:10 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-06-17 13:36:10 +0200 |
commit | 92bc6a513b12fd2b4425aac6c93ccb82c15d611f (patch) | |
tree | da58da03bd04f770c80b081196de22227e2e1661 /src | |
parent | 18c918cc88b9f6fc85734392c33776bbb4f22dac (diff) |
m_spanningtree Exchange public server version strings via SINFO instead of VERSION
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; } |