X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fserver.h;h=e54a379bce36a215f438c0cd7126aef219316f8f;hb=ae7b6b9104e8889426a14cbe41704d9816e566f9;hp=e6e96593d8546b6a35dee9af1a2e12797911bfb1;hpb=11916574f67962dce1d7a2fdf7ef6a3d2d1fa49f;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/server.h b/include/server.h index e6e96593d..e54a379bc 100644 --- a/include/server.h +++ b/include/server.h @@ -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 (GECOS) 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.