summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/treeserver.h
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-12-19 18:41:55 +0000
committerGitHub <noreply@github.com>2017-12-19 18:41:55 +0000
commit4f3aaaef9f8b111452ffa4498aaefeae3fcb6675 (patch)
treed2f9c363afd6de96d564ee6d59205c5ec9b238cd /src/modules/m_spanningtree/treeserver.h
parentc4e7b532055909e303f6ddb1a6e6f2dd073fcf3e (diff)
parent6d4b4f7bf707c8b8270054120e6c7b6f1f2b9834 (diff)
Merge pull request #1442 from B00mX0r/master+map_version
Show server versions in /MAP for opers
Diffstat (limited to 'src/modules/m_spanningtree/treeserver.h')
-rw-r--r--src/modules/m_spanningtree/treeserver.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/treeserver.h b/src/modules/m_spanningtree/treeserver.h
index f75adf54c..037edd194 100644
--- a/src/modules/m_spanningtree/treeserver.h
+++ b/src/modules/m_spanningtree/treeserver.h
@@ -48,6 +48,7 @@ class TreeServer : public Server
/** Full version string including patch version and other info
*/
std::string fullversion;
+ std::string rawversion;
TreeSocket* Socket; /* Socket used to communicate with this server */
std::string sid; /* Server ID */
@@ -144,6 +145,10 @@ class TreeServer : public Server
*/
const std::string& GetFullVersion() const { return fullversion; }
+ /** Get the raw version string of this server
+ */
+ const std::string& GetRawVersion() const { return rawversion; }
+
/** Round trip time of last ping
*/
unsigned long rtt;
@@ -175,6 +180,10 @@ class TreeServer : public Server
*/
void SetFullVersion(const std::string& verstr) { fullversion = verstr; }
+ /** Set the raw version string
+ */
+ void SetRawVersion(const std::string& verstr) { rawversion = verstr; }
+
/** Sets the description of this server. Called when the description of a remote server changes
* and we are notified about it.
* @param descstr The description to set