From 81b926a50a51413a4efeaa623115ce4a296021a6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C4=81nis=20R=C5=ABcis?= Date: Sat, 3 Apr 2010 18:28:23 +0300 Subject: [PATCH] IRC: respond to pings --- irc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/irc.c b/irc.c index df016e14..a9e69a58 100644 --- a/irc.c +++ b/irc.c @@ -296,6 +296,10 @@ static void IRC_ProcessMessage(const char *line) { Con_Printf("[IRC] %.*s has invited you to %s\n", (int) nick_len, msg->prefix, msg->args[1]); } + else if (strcmp("PING", msg->command) == 0) + { + IRC_AddMessage(va("PONG :%s", msg->args[0])); + } IRC_DumpMessage(msg); IRC_FreeMessage(msg); -- 2.39.2