1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

fix to ping/pong handling :)

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@823 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-11-09 21:29:39 +00:00 committed by cras
parent 82a3f10480
commit ea5109d6c5

View File

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