mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 03:40:16 +02:00
PING from client wasn't handled correctly.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@820 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
a4bb4fb983
commit
4b7bcde577
1 changed files with 7 additions and 2 deletions
|
|
@ -143,8 +143,13 @@ static void handle_client_cmd(CLIENT_REC *client, char *cmd, char *args)
|
|||
return;
|
||||
}
|
||||
if (strcmp(cmd, "PING") == 0) {
|
||||
proxy_outdata(client, "PONG proxy :%s\n", args);
|
||||
return;
|
||||
char *server = strchr(args, ':');
|
||||
if (server == NULL || strcmp(server, "proxy") == 0) {
|
||||
if (server != NULL) *server = '\0';
|
||||
if (*args == '\0') args = client->nick;
|
||||
proxy_outdata(client, "PONG proxy :%s\n", args);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (client->server == NULL || !client->server->connected) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue