From: Jānis Rūcis 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=96a75fe50857a74712487468638982c7d218805e;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);