summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/irc/irc-recv.c6
-rw-r--r--weechat/src/irc/irc-recv.c6
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;
}