summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-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;
}