]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/treeserver.h
Remove current time parameter of the Timer constructor
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / treeserver.h
index ab47012b0870d7cbce55e865041ba014fc58d732..6bd1a4f7ca1a7da184b7fffec7e037b961094852 100644 (file)
@@ -43,6 +43,11 @@ class TreeServer : public Server
        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;
+
        TreeSocket* Socket;                     /* Socket used to communicate with this server */
        time_t NextPing;                        /* After this time, the server should be PINGed*/
        bool LastPingWasGood;                   /* True if the server responded to the last PING with a PONG */
@@ -96,6 +101,11 @@ class TreeServer : public Server
         */
        const std::string& GetVersion();
 
+       /** 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; }
+
        /** Set time we are next due to ping this server
         */
        void SetNextPingTime(time_t t);
@@ -142,6 +152,17 @@ class TreeServer : public Server
         */
        void SetVersion(const std::string &Version);
 
+       /** Set the full version string
+        * @param verstr The version string to set
+        */
+       void SetFullVersion(const std::string& verstr) { fullversion = 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
+        */
+       void SetDesc(const std::string& descstr) { description = descstr; }
+
        /** Return all child servers
         */
        const ChildServers& GetChildren() const { return Children; }