summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-14 20:58:38 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-14 20:58:38 +0000
commit7a566e345cf02dea057b071d56f795e5e2736f80 (patch)
tree95753a66fba504e3416411f8d62acd83bc205ae3 /src
parenta61e6b29163201b31f539658aade078fa56da318 (diff)
Added Server::GetVersion()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2455 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules.cpp5
-rw-r--r--src/modules/m_spanningtree.cpp6
2 files changed, 8 insertions, 3 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index e2c131780..93f05cdf1 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -326,6 +326,11 @@ ServerConfig* Server::GetConfig()
return Config;
}
+std::string Server::GetVersion()
+{
+ return ServerInstance->GetVersionString();
+}
+
void Server::DelSocket(InspSocket* sock)
{
for (std::vector<InspSocket*>::iterator a = module_sockets.begin(); a < module_sockets.end(); a++)
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index 1ef31221e..1476b81b7 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -173,7 +173,7 @@ class TreeServer
ServerDesc = "";
VersionString = "";
UserCount = OperCount = 0;
- VersionString = GetVersionString();
+ VersionString = Srv->GetVersion();
}
/* We use this constructor only to create the 'root' item, TreeRoot, which
@@ -185,7 +185,7 @@ class TreeServer
Parent = NULL;
VersionString = "";
UserCount = OperCount = 0;
- VersionString = GetVersionString();
+ VersionString = Srv->GetVersion();
Route = NULL;
AddHashEntry();
}
@@ -1099,7 +1099,7 @@ class TreeSocket : public InspSocket
Srv->SendOpers("*** Bursting to \2"+s->GetName()+"\2.");
this->WriteLine("BURST");
/* send our version string */
- this->WriteLine(":"+Srv->GetServerName()+" VERSION :"+GetVersionString());
+ this->WriteLine(":"+Srv->GetServerName()+" VERSION :"+Srv->GetVersion());
/* Send server tree */
this->SendServers(TreeRoot,s,1);
/* Send users and their oper status */