]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/server.h
Change ServerInfo::gecos to description
[user/henk/code/inspircd.git] / include / server.h
index 3d88547344d55ac863e35d9f7fc1ae4bbab7a89c..d73c9673a8136302035de22e83971b54bf34c8cf 100644 (file)
@@ -26,9 +26,10 @@ class CoreExport Server : public classbase
         */
        const std::string name;
 
-       /** The description of this server
+       /** The description of this server.
+        * This can be updated by the protocol module (for remote servers) or by a rehash (for the local server).
         */
-       const std::string description;
+       std::string description;
 
        /** True if this server is ulined
         */
@@ -38,6 +39,10 @@ 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, const std::string& srvdesc)
                : name(srvname), description(srvdesc), uline(false), silentuline(false) { }
@@ -48,7 +53,7 @@ class CoreExport Server : public classbase
         */
        const std::string& GetName() const { return name; }
 
-       /** Returns the description (GECOS) of this server
+       /** Returns the description of this server
         * @return The description of this server
         */
        const std::string& GetDesc() const { return description; }