changeset 13657:f9b24d282c91

[gaim-migrate @ 16059] The 'idle' boolean is now respected in gaim_presence_set_idle(); as per the documentation, 'idle_time' is ignored if 'idle' is FALSE. committer: Tailor Script <tailor@pidgin.im>
author Evan Schoenberg <evan.s@dreskin.net>
date Tue, 18 Apr 2006 21:15:56 +0000
parents d0fc90e56b5e
children 788580688610
files src/status.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/status.c	Tue Apr 18 07:45:55 2006 +0000
+++ b/src/status.c	Tue Apr 18 21:15:56 2006 +0000
@@ -1417,7 +1417,7 @@
 
 		if (prpl_info && g_list_find(gaim_connections_get_all(), gc) &&
 				prpl_info->set_idle)
-			prpl_info->set_idle(gc, time(NULL) - idle_time);
+			prpl_info->set_idle(gc, (idle ? (time(NULL) - idle_time) : 0));
 	}
 }