From: Jānis Rūcis <parasti@gmail.com>
Date: Sat, 3 Apr 2010 15:28:23 +0000 (+0300)
Subject: IRC: respond to pings
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=81b926a50a51413a4efeaa623115ce4a296021a6;p=xonotic%2Fdarkplaces.git

IRC: respond to pings
---

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);