diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-29 16:24:44 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-29 16:24:44 +0000 |
commit | 01f1f7bb7f0ccbb2b0ed894480f24a6df0477e33 (patch) | |
tree | f06550115cfbbff80cbb7da9d58af80ab361a70a /src/commands.cpp | |
parent | bb23bf06b484cced3361b304bb974ef5bee55323 (diff) |
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
Diffstat (limited to 'src/commands.cpp')
-rw-r--r-- | src/commands.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
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) |