pidgin: 33d3e7b1: Set buddies idle time to 0 when their id...

markdoliner at pidgin.im markdoliner at pidgin.im
Wed Dec 17 13:40:33 EST 2008


-----------------------------------------------------------------
Revision: 33d3e7b191d6c22d10b2ee99b24b42358ea9f4a9
Ancestor: 51955f6d3b1f210f42dbdb08e2260e03b956759f
Author: markdoliner at pidgin.im
Date: 2008-12-17T18:36:31
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/33d3e7b191d6c22d10b2ee99b24b42358ea9f4a9

Modified files:
        libpurple/protocols/myspace/myspace.c

ChangeLog: 

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

-------------- next part --------------
============================================================
--- libpurple/protocols/myspace/myspace.c	73a5ddcd6e144c7c19decf2317e81c8a3db33cce
+++ libpurple/protocols/myspace/myspace.c	021969af0e90d6df0ee92bf6503ded981364b1e4
@@ -1428,10 +1428,10 @@ msim_incoming_status(MsimSession *sessio
 
 	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


More information about the Commits mailing list