diff options
| author | 2022-05-17 20:06:21 +0100 | |
|---|---|---|
| committer | 2022-05-17 20:06:21 +0100 | |
| commit | 04fba25ada45f787ff6c93f813912b81a257538a (patch) | |
| tree | 21488fabaaa50e27f47764b8d8c29963924cf7fb /src/modules/m_spanningtree/treeserver.h | |
| parent | Fix an oversight in commit 3be039e. (diff) | |
Deprecate the (raw)version SINFO keys and split out customversion/rawbranch.
Diffstat (limited to 'src/modules/m_spanningtree/treeserver.h')
| -rw-r--r-- | src/modules/m_spanningtree/treeserver.h | 37 |
1 files changed, 4 insertions, 33 deletions
diff --git a/src/modules/m_spanningtree/treeserver.h b/src/modules/m_spanningtree/treeserver.h index bbb233380..bc55441cf 100644 --- a/src/modules/m_spanningtree/treeserver.h +++ b/src/modules/m_spanningtree/treeserver.h @@ -49,13 +49,6 @@ class TreeServer final TreeServer* Parent; /* Parent entry */ TreeServer* Route; /* Route entry */ std::vector<TreeServer*> Children; /* List of child objects */ - std::string VersionString; /* Version string or empty string */ - - /** Full version string including patch version and other info - */ - std::string fullversion; - std::string rawversion; - TreeSocket* Socket; /* Socket used to communicate with this server */ /** Counter counting how many servers are bursting in front of this server, including @@ -94,6 +87,10 @@ public: size_t UserCount; /* How many users are on this server? [note: doesn't care about +i] */ size_t OperCount = 0; /* How many opers are on this server? */ + std::string customversion; + std::string rawbranch; + std::string rawversion; + /** We use this constructor only to create the 'root' item, Utils->TreeRoot, which * represents our own server. Therefore, it has no route, no parent, and * no socket associated with it. Its version string is our own local version. @@ -143,19 +140,6 @@ public: */ bool IsDead() const { return isdead; } - /** Get server version string - */ - const std::string& GetVersion() const { return VersionString; } - - /** Get the full version string of this server - * @return The full version string of this server, including patch version and other info - */ - 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 = 0; @@ -178,19 +162,6 @@ public: */ TreeServer* GetParent() const { return Parent; } - /** Set the server version string - */ - void SetVersion(const std::string& verstr) { VersionString = verstr; } - - /** Set the full version string - * @param verstr The version string to set - */ - 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 |
