Set buddies idle time to 0 when their idle. 0 is a flag to the UI that

Wed, 17 Dec 2008 18:36:31 +0000

author
Mark Doliner <markdoliner@pidgin.im>
date
Wed, 17 Dec 2008 18:36:31 +0000
changeset 25232
3bd7de63e77d
parent 25231
099746be0c86
child 25233
8a3fe5c4e2f4
child 25236
31398df36384

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

libpurple/protocols/myspace/myspace.c file | annotate | diff | comparison | revisions
--- 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

mercurial