InspIRCd  4.0
Public Member Functions | Protected Attributes | Friends | List of all members
Server Class Reference
Inheritance diagram for Server:
Cullable insp::uncopiable

Public Member Functions

 Server (const std::string &srvid, const std::string &srvname, const std::string &srvdesc)
 
const std::string & GetId () const
 
const std::string & GetName () const
 
const std::string & GetDesc () const
 
bool IsService () const
 
bool IsSilentService () const
 
- Public Member Functions inherited from Cullable
virtual ~Cullable ()
 
virtual Result Cull ()
 

Protected Attributes

const std::string id
 
const std::string name
 
std::string description
 
bool service = false
 
bool silentservice = false
 

Friends

class ConfigReaderThread
 

Additional Inherited Members

- Protected Member Functions inherited from Cullable
 Cullable ()
 

Member Function Documentation

◆ GetDesc()

const std::string& Server::GetDesc ( ) const
inline

Returns the description of this server

Returns
The description of this server

◆ GetId()

const std::string& Server::GetId ( ) const
inline

Retrieves the unique identifier for this server (e.g. 36C).

◆ GetName()

const std::string& Server::GetName ( ) const
inline

Returns the name of this server

Returns
The name of this server, for example "irc.inspircd.org".

◆ IsService()

bool Server::IsService ( ) const
inline

Checks whether this server is a service.

Returns
True if this server is a service, false otherwise.

◆ IsSilentService()

bool Server::IsSilentService ( ) const
inline

Checks whether this server is a silent service. Silent services servers introduce, quit and oper up users without a snotice being generated.

Returns
True if this server is a silent service, false otherwise.

Friends And Related Function Documentation

◆ ConfigReaderThread

friend class ConfigReaderThread
friend

Allow ConfigReaderThread to update the description on a rehash

Member Data Documentation

◆ description

std::string Server::description
protected

The description of this server. This can be updated by the protocol module (for remote servers) or by a rehash (for the local server).

◆ id

const std::string Server::id
protected

The unique identifier for this server.

◆ name

const std::string Server::name
protected

The name of this server

◆ service

bool Server::service = false
protected

True if this server is a service.

◆ silentservice

bool Server::silentservice = false
protected

True if this server is a silent service, i.e. silent="yes" in the service block.


The documentation for this class was generated from the following file: