2 * InspIRCd -- Internet Relay Chat Daemon
4 * Copyright (C) 2014 Attila Molnar <attilamolnar@hush.com>
6 * This file is part of InspIRCd. InspIRCd is free software: you can
7 * redistribute it and/or modify it under the terms of the GNU General Public
8 * License as published by the Free Software Foundation, version 2.
10 * This program is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
22 class CoreExport Server : public classbase
25 /** The name of this server
27 const std::string name;
29 /** The description of this server
31 const std::string description;
33 /** True if this server is ulined
37 /** True if this server is a silent uline, i.e. silent="true" in the uline block
42 Server(const std::string& srvname, const std::string& srvdesc)
43 : name(srvname), description(srvdesc), uline(false), silentuline(false) { }
46 * Returns the name of this server
47 * @return The name of this server, for example "irc.inspircd.org".
49 const std::string& GetName() const { return name; }
51 /** Returns the description (GECOS) of this server
52 * @return The description of this server
54 const std::string& GetDesc() const { return description; }
57 * Checks whether this server is ulined
58 * @return True if this server is ulined, false otherwise.
60 bool IsULine() const { return uline; }
63 * Checks whether this server is a silent uline
64 * Silent uline servers introduce, quit and oper up users without a snotice being generated.
65 * @return True if this server is a silent uline, false otherwise.
67 bool IsSilentULine() const { return silentuline; }