X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fserver.h;h=491754e1337f2465131c0ba0440adac931e22b73;hb=20fa9e1038ee3d5c2d0c89bf7e8e6dcda0644aa6;hp=e54a379bce36a215f438c0cd7126aef219316f8f;hpb=a3e0768758ca68429a29d9c78ce672f2d938c6e7;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/server.h b/include/server.h index e54a379bc..491754e13 100644 --- a/include/server.h +++ b/include/server.h @@ -22,6 +22,9 @@ class CoreExport Server : public classbase { protected: + /** The unique identifier for this server. */ + const std::string id; + /** The name of this server */ const std::string name; @@ -44,8 +47,25 @@ class CoreExport Server : public classbase friend class ConfigReaderThread; public: - Server(const std::string& srvname, const std::string& srvdesc) - : name(srvname), description(srvdesc), uline(false), silentuline(false) { } + Server(const std::string& srvid, const std::string& srvname, const std::string& srvdesc) + : id(srvid) + , name(srvname) + , description(srvdesc) + , uline(false) + , silentuline(false) + { + } + + DEPRECATED_METHOD(Server(const std::string& srvname, const std::string& srvdesc)) + : name(srvname) + , description(srvdesc) + , uline(false) + , silentuline(false) + { + } + + /** Retrieves the unique identifier for this server (e.g. 36C). */ + const std::string& GetId() const { return id; } /** * Returns the name of this server @@ -53,7 +73,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; }