/*
* InspIRCd -- Internet Relay Chat Daemon
*
+ * Copyright (C) 2019-2020 Sadie Powell <sadie@witchery.services>
+ * Copyright (C) 2018 Matt Schatz <genius3000@g3k.solutions>
* Copyright (C) 2014 Attila Molnar <attilamolnar@hush.com>
*
* This file is part of InspIRCd. InspIRCd is free software: you can
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;
*/
bool uline;
- /** True if this server is a silent uline, i.e. silent="true" in the uline block
+ /** True if this server is a silent uline, i.e. silent="yes" in the uline block
*/
bool silentuline;
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
*/
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; }