1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 23:06:38 +02:00

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
+6
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;
}
+6
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;
}