corrected hopcounter
This commit is contained in:
parent
2e199144ed
commit
6e5902cbfd
@ -567,7 +567,7 @@ void command_server(char *hostname, char *parameters)
|
|||||||
*/
|
*/
|
||||||
for (ta = servers; ta; ta = ta->next) {
|
for (ta = servers; ta; ta = ta->next) {
|
||||||
if (ta->hops) {
|
if (ta->hops) {
|
||||||
sprintf(csbuf, "SERVER %s %d 0 %s %s %s\r\n", ta->server, ta->hops +1, ta->prod, ta->vers, ta->fullname);
|
sprintf(csbuf, "SERVER %s %d 0 %s %s %s\r\n", ta->server, ta->hops, ta->prod, ta->vers, ta->fullname);
|
||||||
send_msg(tnsl->socket, tnsl->servaddr_in, tnsl->server, csbuf);
|
send_msg(tnsl->socket, tnsl->servaddr_in, tnsl->server, csbuf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -598,7 +598,7 @@ void command_server(char *hostname, char *parameters)
|
|||||||
*/
|
*/
|
||||||
for (ta = servers; ta; ta = ta->next) {
|
for (ta = servers; ta; ta = ta->next) {
|
||||||
if (ta->hops) {
|
if (ta->hops) {
|
||||||
sprintf(csbuf, "SERVER %s %d 0 %s %s %s\r\n", ta->server, ta->hops +1, ta->prod, ta->vers, ta->fullname);
|
sprintf(csbuf, "SERVER %s %d 0 %s %s %s\r\n", ta->server, ta->hops, ta->prod, ta->vers, ta->fullname);
|
||||||
send_msg(tnsl->socket, tnsl->servaddr_in, tnsl->server, csbuf);
|
send_msg(tnsl->socket, tnsl->servaddr_in, tnsl->server, csbuf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user