]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
IRC: respond to pings
authorJānis Rūcis <parasti@gmail.com>
Sat, 3 Apr 2010 15:28:23 +0000 (18:28 +0300)
committerJānis Rūcis <parasti@gmail.com>
Sun, 27 Jun 2010 12:23:21 +0000 (15:23 +0300)
irc.c

diff --git a/irc.c b/irc.c
index df016e1461046da7ddf209ed52e535a2dbd4ff87..a9e69a58a870adb516c3ac1df3aaa4cc0f337dec 100644 (file)
--- 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);