Fixed bug with PING answer: removed one colon at beginning of PONG arguments (bug #19846)

This commit is contained in:
Sebastien Helleu 2007-05-10 09:22:28 +00:00
parent c3e9858d55
commit d6925c982e
2 changed files with 12 additions and 0 deletions

View File

@ -1197,10 +1197,16 @@ irc_cmd_recv_ping (t_irc_server *server, char *host, char *nick, char *arguments
/* make C compiler happy */
(void) host;
(void) nick;
if (arguments[0] == ':')
arguments++;
pos = strrchr (arguments, ' ');
if (pos)
pos[0] = '\0';
server_sendf (server, "PONG :%s", arguments);
return 0;
}

View File

@ -1197,10 +1197,16 @@ irc_cmd_recv_ping (t_irc_server *server, char *host, char *nick, char *arguments
/* make C compiler happy */
(void) host;
(void) nick;
if (arguments[0] == ':')
arguments++;
pos = strrchr (arguments, ' ');
if (pos)
pos[0] = '\0';
server_sendf (server, "PONG :%s", arguments);
return 0;
}