Mercurial > pidgin
comparison libpurple/protocols/myspace/myspace.c @ 24798: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 | c2054d8d23fc |
children | c044eb54b7ac 075d700fdc75 |
comparison
equal
deleted
inserted
replaced
24797:9216da5184a2 | 24798:a8643ca8d2e0 |
---|---|
1426 | 1426 |
1427 purple_prpl_got_user_status(session->account, username, purple_primitive_get_id_from_type(purple_status_code), NULL); | 1427 purple_prpl_got_user_status(session->account, username, purple_primitive_get_id_from_type(purple_status_code), NULL); |
1428 | 1428 |
1429 if (status_code == MSIM_STATUS_CODE_IDLE) { | 1429 if (status_code == MSIM_STATUS_CODE_IDLE) { |
1430 purple_debug_info("msim", "msim_status: got idle: %s\n", username); | 1430 purple_debug_info("msim", "msim_status: got idle: %s\n", username); |
1431 purple_prpl_got_user_idle(session->account, username, TRUE, time(NULL)); | 1431 purple_prpl_got_user_idle(session->account, username, TRUE, 0); |
1432 } else { | 1432 } else { |
1433 /* All other statuses indicate going back to non-idle. */ | 1433 /* All other statuses indicate going back to non-idle. */ |
1434 purple_prpl_got_user_idle(session->account, username, FALSE, time(NULL)); | 1434 purple_prpl_got_user_idle(session->account, username, FALSE, 0); |
1435 } | 1435 } |
1436 | 1436 |
1437 #ifdef MSIM_SEND_CLIENT_VERSION | 1437 #ifdef MSIM_SEND_CLIENT_VERSION |
1438 if (status_code == MSIM_STATUS_CODE_ONLINE) { | 1438 if (status_code == MSIM_STATUS_CODE_ONLINE) { |
1439 /* Secretly whisper to unofficial clients our own version as they come online */ | 1439 /* Secretly whisper to unofficial clients our own version as they come online */ |