From: brain Date: Wed, 1 Jun 2005 15:07:40 +0000 (+0000) Subject: Added propogation of version replies and server descriptions X-Git-Tag: v2.0.23~10122 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=0b233921bf69b877fb44c66e968f0266fc3ebeec;p=user%2Fhenk%2Fcode%2Finspircd.git Added propogation of version replies and server descriptions git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1579 e03df62e-2008-0410-955e-edbf42e46eb7 --- 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)) {