]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/server.h
Fix the Windows build system to use the new license file location.
[user/henk/code/inspircd.git] / include / server.h
index e6e96593d8546b6a35dee9af1a2e12797911bfb1..d73c9673a8136302035de22e83971b54bf34c8cf 100644 (file)
@@ -26,6 +26,11 @@ class CoreExport Server : public classbase
         */
        const std::string name;
 
+       /** The description of this server.
+        * This can be updated by the protocol module (for remote servers) or by a rehash (for the local server).
+        */
+       std::string description;
+
        /** True if this server is ulined
         */
        bool uline;
@@ -34,9 +39,13 @@ class CoreExport Server : public classbase
         */
        bool silentuline;
 
+       /** Allow ConfigReaderThread to update the description on a rehash
+        */
+       friend class ConfigReaderThread;
+
  public:
-       Server(const std::string& srvname)
-               : name(srvname), uline(false), silentuline(false) { }
+       Server(const std::string& srvname, const std::string& srvdesc)
+               : name(srvname), description(srvdesc), uline(false), silentuline(false) { }
 
        /**
         * Returns the name of this server
@@ -44,6 +53,11 @@ class CoreExport Server : public classbase
         */
        const std::string& GetName() const { return name; }
 
+       /** Returns the description of this server
+        * @return The description of this server
+        */
+       const std::string& GetDesc() const { return description; }
+
        /**
         * Checks whether this server is ulined
         * @return True if this server is ulined, false otherwise.