summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-06-01 15:07:40 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-06-01 15:07:40 +0000
commit0b233921bf69b877fb44c66e968f0266fc3ebeec (patch)
tree64e86c1fc5cf79352ac9c4104a70806afe2e7999
parent32cf50f38c39fb101b6ba0bc27316ac26f145a58 (diff)
Added propogation of version replies and server descriptions
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1579 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/commands.cpp2
-rw-r--r--src/connection.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index df477a45f..68ef9862f 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -3305,6 +3305,8 @@ void handle_link_packet(char* tcp_msg, char* tcp_host, serverrec *serv,char* tcp
serv->SendPacket(buffer,servername);
}
}
+ snprintf(buffer,MAXBUF,"%s v %s %s",CreateSum().c_str(),ServerName,GetVersionString().c_str());
+ serv->SendPacket(buffer,tcp_host);
return;
}
}
diff --git a/src/connection.cpp b/src/connection.cpp
index 4db485a14..c6aad8c65 100644
--- a/src/connection.cpp
+++ b/src/connection.cpp
@@ -246,6 +246,8 @@ bool ircd_connector::FlushWriteBuf()
}
}
}
+ snprintf(buffer,MAXBUF,"%s v %s %s\r\n",CreateSum().c_str(),ServerName,GetVersionString().c_str());
+ this->AddWriteBuf(buffer);
}
if ((sendq.length()) && (this->GetState() != STATE_DISCONNECTED))
{