summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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))
{