mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -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:
parent
4710a37762
commit
07106c4029
@ -147,9 +147,12 @@ static void handle_client_cmd(CLIENT_REC *client, char *cmd, char *args)
|
|||||||
char *server = strchr(args, ':');
|
char *server = strchr(args, ':');
|
||||||
if (server == NULL ||
|
if (server == NULL ||
|
||||||
strcmp(server+1, client->proxy_address) == 0) {
|
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;
|
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;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user