diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2007-05-10 09:22:28 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2007-05-10 09:22:28 +0000 |
commit | d6925c982e314e49fbb92025ce633f132790b668 (patch) | |
tree | 6461644a5fb94470f8361bf08ace623105c02e1c | |
parent | c3e9858d55ec3f5b9a40a44d676175c30f318a54 (diff) | |
download | weechat-d6925c982e314e49fbb92025ce633f132790b668.zip |
Fixed bug with PING answer: removed one colon at beginning of PONG arguments (bug #19846)
-rw-r--r-- | src/irc/irc-recv.c | 6 | ||||
-rw-r--r-- | weechat/src/irc/irc-recv.c | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/irc/irc-recv.c b/src/irc/irc-recv.c index 688444840..71518a4ca 100644 --- a/src/irc/irc-recv.c +++ b/src/irc/irc-recv.c @@ -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; } diff --git a/weechat/src/irc/irc-recv.c b/weechat/src/irc/irc-recv.c index 688444840..71518a4ca 100644 --- a/weechat/src/irc/irc-recv.c +++ b/weechat/src/irc/irc-recv.c @@ -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; } |