diff src/server.c @ 12272:3ef381cdc47e

[gaim-migrate @ 14574] This should fix idle time reporting for all accounts. Previously it would only work for one account because I'm dumb. We're also doing one idleness check every 5 seconds instead of checking for each account every 20 seconds. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 30 Nov 2005 06:03:49 +0000
parents 4d3119205a33
children 970fec1d7062
line wrap: on
line diff
--- a/src/server.c	Wed Nov 30 06:02:38 2005 +0000
+++ b/src/server.c	Wed Nov 30 06:03:49 2005 +0000
@@ -133,10 +133,6 @@
 	if (prpl_info && prpl_info->send_im)
 		val = prpl_info->send_im(gc, name, message, flags);
 
-	/* Only update the last_sent_time if the user actually sent the message */
-	if (!(flags & GAIM_MESSAGE_AUTO_RESP))
-		time(&gc->last_sent_time);
-
 	/*
 	 * XXX - If "only auto-reply when away & idle" is set, then shouldn't
 	 * this only reset lar->sent if we're away AND idle?
@@ -411,8 +407,6 @@
 	if (prpl_info && prpl_info->chat_send)
 		val = prpl_info->chat_send(gc, id, message, flags);
 
-	time(&gc->last_sent_time);
-
 	return val;
 }