From 01f1f7bb7f0ccbb2b0ed894480f24a6df0477e33 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 29 Apr 2005 16:24:44 +0000 Subject: Test fixes for /version strings not being set in burst git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1265 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands.cpp | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'src/commands.cpp') diff --git a/src/commands.cpp b/src/commands.cpp index d62ad4bcc..3cadb1e83 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -1849,8 +1849,20 @@ void handle_v(char token,char* params,serverrec* source,serverrec* reply, char* { char* servername = strtok(params," "); char* versionstr = strtok(NULL,"\r\n"); - ircd_connector* cn = reply->FindHost(servername); - cn->SetVersionString(versionstr); + + for (int j = 0; j < 32; j++) + { + if (me[j] != NULL) + { + for (int x = 0; x < me[j]->connectors.size(); x++) + { + if (match(me[j]->connectors[x].GetServerName().c_str(),servername)) + { + me[j]->connectors[x].SetVersionString(versionstr); + } + } + } + } } void handle_V(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host) -- cgit v1.2.3