summaryrefslogtreecommitdiff
path: root/src/connection.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-28 19:39:18 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-28 19:39:18 +0000
commit2470212ed18754d540a47198c4be320d63c44fd3 (patch)
treeb793695067c161bace2b22e042ce9432e04d419b /src/connection.cpp
parente85c4b09ab8a320607076b54fb75d1f0e3fb636c (diff)
Added remote versioning
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1244 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/connection.cpp')
-rw-r--r--src/connection.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/connection.cpp b/src/connection.cpp
index 36a4570eb..75d1bea04 100644
--- a/src/connection.cpp
+++ b/src/connection.cpp
@@ -266,6 +266,21 @@ bool connection::BeginLink(char* targethost, int newport, char* password, char*
return false;
}
+void ircd_connector::SetVersionString(std::string newversion)
+{
+ log(DEBUG,"Set version of %s to %s",this->servername.c_str(),newversion.c_str());
+ this->version = newversion;
+}
+
+std::string ircd_connector::GetVersionString()
+{
+ if (this->version == "")
+ {
+ return "(No version available for "+this->servername+")";
+ }
+ else return this->version;
+}
+
bool connection::MeshCookie(char* targethost, int newport, unsigned long cookie, char* servername)
{
char connect[MAXBUF];