mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05: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
@ -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…
Reference in New Issue
Block a user