diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-10 15:02:11 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-10 15:02:11 +0000 |
commit | 5ad92066273a998cf85b5d13e0b3a335a7cd4d57 (patch) | |
tree | 641961522a231b09eb306e6418b780566ce5bec9 /src | |
parent | 396c9ef9f7a96934d3227bb7d1d091315e3d4fa8 (diff) |
Server::GetConfig, Server::GetVersion -> removed
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4833 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules.cpp | 10 | ||||
-rw-r--r-- | src/modules/m_spanningtree.cpp | 6 |
2 files changed, 3 insertions, 13 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index da4a7e152..ef0136a8e 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -330,16 +330,6 @@ void Server::RehashServer() ServerInstance->Config->Read(false,NULL); } -ServerConfig* Server::GetConfig() -{ - return ServerInstance->Config; -} - -std::string Server::GetVersion() -{ - return ServerInstance->GetVersionString(); -} - void Server::DelSocket(InspSocket* sock) { for (std::vector<InspSocket*>::iterator a = ServerInstance->module_sockets.begin(); a < ServerInstance->module_sockets.end(); a++) diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 21209ab6a..3cee35deb 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -228,7 +228,7 @@ class TreeServer : public classbase ServerDesc = ""; VersionString = ""; UserCount = OperCount = 0; - VersionString = Srv->GetVersion(); + VersionString = ServerInstance->GetVersionString(); } /* We use this constructor only to create the 'root' item, TreeRoot, which @@ -240,7 +240,7 @@ class TreeServer : public classbase Parent = NULL; VersionString = ""; UserCount = OperCount = 0; - VersionString = Srv->GetVersion(); + VersionString = ServerInstance->GetVersionString(); Route = NULL; Socket = NULL; /* Fix by brain */ AddHashEntry(); @@ -1817,7 +1817,7 @@ class TreeSocket : public InspSocket ServerInstance->WriteOpers("*** Bursting to \2"+name+"\2."); this->WriteLine(burst); /* send our version string */ - this->WriteLine(":"+Srv->GetServerName()+" VERSION :"+Srv->GetVersion()); + this->WriteLine(":"+Srv->GetServerName()+" VERSION :"+this->Instance->GetVersionString()); /* Send server tree */ this->SendServers(TreeRoot,s,1); /* Send users and their oper status */ |