mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 11:09:04 -04:00
Added way to retrieve a pointer to the ServerConfig object
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2419 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
65198c37b4
commit
997ba7e5be
@ -1104,7 +1104,11 @@ class Server : public classbase
|
||||
* Destroys a Server object.
|
||||
*/
|
||||
virtual ~Server();
|
||||
|
||||
/** Obtains a pointer to the server's ServerConfig object.
|
||||
* The ServerConfig object contains most of the configuration data
|
||||
* of the IRC server, as read from the config file by the core.
|
||||
*/
|
||||
ServerConfig* GetConfig();
|
||||
/** Sends text to all opers.
|
||||
* This method sends a server notice to all opers with the usermode +s.
|
||||
*/
|
||||
|
@ -329,6 +329,11 @@ void Server::RehashServer()
|
||||
Config->Read(false,NULL);
|
||||
}
|
||||
|
||||
ServerConfig* Server::GetConfig()
|
||||
{
|
||||
return Config;
|
||||
}
|
||||
|
||||
void Server::DelSocket(InspSocket* sock)
|
||||
{
|
||||
for (std::vector<InspSocket*>::iterator a = module_sockets.begin(); a < module_sockets.end(); a++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user