summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-06-17 13:28:19 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-06-17 13:28:19 +0200
commiteb5e3b356cdfa5a68c28b8f641addaad47c12320 (patch)
tree57f440c64b0af035c69459259b18fa9a872bd054 /src
parent9928fca4249ea40071f2ab631a92736ba28971b8 (diff)
m_spanningtree Send and receive full version strings via SINFO
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_spanningtree/netburst.cpp3
-rw-r--r--src/modules/m_spanningtree/sinfo.cpp5
2 files changed, 8 insertions, 0 deletions
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::vector<std::string
const std::string& key = params.front();
const std::string& value = params.back();
+ if (key == "fullversion")
+ {
+ server->SetFullVersion(value);
+ }
+
return CMD_SUCCESS;
}