changeset 24763:a8643ca8d2e0

Set buddies idle time to 0 when their idle. 0 is a flag to the UI that we don't know how long they've been idle. Previously myspace buddies always started at "idle: 0" when you log in and the time slowly increases
author Mark Doliner <mark@kingant.net>
date Wed, 17 Dec 2008 18:36:31 +0000
parents 9216da5184a2
children c044eb54b7ac 075d700fdc75
files libpurple/protocols/myspace/myspace.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/myspace/myspace.c	Wed Dec 17 18:21:47 2008 +0000
+++ b/libpurple/protocols/myspace/myspace.c	Wed Dec 17 18:36:31 2008 +0000
@@ -1428,10 +1428,10 @@
 
 	if (status_code == MSIM_STATUS_CODE_IDLE) {
 		purple_debug_info("msim", "msim_status: got idle: %s\n", username);
-		purple_prpl_got_user_idle(session->account, username, TRUE, time(NULL));
+		purple_prpl_got_user_idle(session->account, username, TRUE, 0);
 	} else {
 		/* All other statuses indicate going back to non-idle. */
-		purple_prpl_got_user_idle(session->account, username, FALSE, time(NULL));
+		purple_prpl_got_user_idle(session->account, username, FALSE, 0);
 	}
 
 #ifdef MSIM_SEND_CLIENT_VERSION