diff libpurple/protocols/irc/irc.c @ 22149:252b96b6a32c

Don't send keep-alives if we've received data since in the last KEEPALIVE_INTERVAL seconds
author Sean Egan <seanegan@gmail.com>
date Wed, 23 Jan 2008 23:28:38 +0000
parents 6b42bed44324
children f1dfc0d70d19 718a9c287839 f5bcb58bdf56
line wrap: on
line diff
--- a/libpurple/protocols/irc/irc.c	Thu Jan 17 21:08:20 2008 +0000
+++ b/libpurple/protocols/irc/irc.c	Wed Jan 23 23:28:38 2008 +0000
@@ -572,6 +572,7 @@
 {
 	char *cur, *end;
 
+	irc->account->gc->last_received = time(NULL);
 	irc->inbufused += len;
 	irc->inbuf[irc->inbufused] = '\0';