1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

ping/pong was broken again, hope this now _finally_ works :)

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@827 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-11-09 21:48:51 +00:00 committed by cras
parent 4710a37762
commit 07106c4029

View File

@ -147,9 +147,12 @@ static void handle_client_cmd(CLIENT_REC *client, char *cmd, char *args)
char *server = strchr(args, ':');
if (server == NULL ||
strcmp(server+1, client->proxy_address) == 0) {
if (server != NULL) *server = '\0';
if (server != NULL) {
if (server[-1] == ' ') server--;
*server = '\0';
}
if (*args == '\0') args = client->nick;
proxy_outdata(client, ":%s PONG proxy :%s", client->proxy_address, args);
proxy_outdata(client, ":%s PONG proxy :%s\n", client->proxy_address, args);
return;
}
}