]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
m_spanningtree Send and receive full version strings via SINFO
authorAttila Molnar <attilamolnar@hush.com>
Tue, 17 Jun 2014 11:28:19 +0000 (13:28 +0200)
committerAttila Molnar <attilamolnar@hush.com>
Tue, 17 Jun 2014 11:28:19 +0000 (13:28 +0200)
src/modules/m_spanningtree/netburst.cpp
src/modules/m_spanningtree/sinfo.cpp

index 595d04590d5b412947608cbcc831ff4f0373490f..ffc0a7e1151a87806a6161f39814c3c6e1857126 100644 (file)
@@ -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.
index 71bd48b44d0ae18d9d45b87647734653f639c499..1934e0a303fc2e14bede182c5182f2967fdf4029 100644 (file)
@@ -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;
 }