From 0b233921bf69b877fb44c66e968f0266fc3ebeec Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 1 Jun 2005 15:07:40 +0000 Subject: Added propogation of version replies and server descriptions git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1579 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands.cpp | 2 ++ src/connection.cpp | 2 ++ 2 files changed, 4 insertions(+) (limited to 'src') 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)) { -- cgit v1.2.3