Fixed bug with PING answer: removed one colon at beginning of PONG arguments (bug #19846)
This commit is contained in:
parent
c3e9858d55
commit
d6925c982e
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user