Mercurial > pidgin
comparison src/status.c @ 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 | 207f974ca030 |
children | b76c6de0c3b5 |
comparison
equal
deleted
inserted
replaced
13656:d0fc90e56b5e | 13657:f9b24d282c91 |
---|---|
1415 if (gc != NULL && gc->prpl != NULL) | 1415 if (gc != NULL && gc->prpl != NULL) |
1416 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); | 1416 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); |
1417 | 1417 |
1418 if (prpl_info && g_list_find(gaim_connections_get_all(), gc) && | 1418 if (prpl_info && g_list_find(gaim_connections_get_all(), gc) && |
1419 prpl_info->set_idle) | 1419 prpl_info->set_idle) |
1420 prpl_info->set_idle(gc, time(NULL) - idle_time); | 1420 prpl_info->set_idle(gc, (idle ? (time(NULL) - idle_time) : 0)); |
1421 } | 1421 } |
1422 } | 1422 } |
1423 | 1423 |
1424 void | 1424 void |
1425 gaim_presence_set_login_time(GaimPresence *presence, time_t login_time) | 1425 gaim_presence_set_login_time(GaimPresence *presence, time_t login_time) |