summaryrefslogtreecommitdiff
path: root/src/connection.cpp
diff options
context:
space:
mode:
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];