Mercurial > pidgin.yaz
diff src/status.c @ 11551:78aad676fdb2
[gaim-migrate @ 13806]
This creates an unidle menu option for the I'dle Mak'er plugin. I like
having this.
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Thu, 15 Sep 2005 14:54:23 +0000 |
parents | a26eb48d1953 |
children | b7d9d00a4ef9 |
line wrap: on
line diff
--- a/src/status.c Thu Sep 15 06:12:21 2005 +0000 +++ b/src/status.c Thu Sep 15 14:54:23 2005 +0000 @@ -1366,6 +1366,19 @@ old_idle, idle); } } + else if(gaim_presence_get_context(presence) == GAIM_PRESENCE_CONTEXT_ACCOUNT) + { + GaimConnection *gc = + gaim_account_get_connection(gaim_presence_get_account(presence)); + GaimPluginProtocolInfo *prpl_info = NULL; + + if (gc != NULL && gc->prpl != NULL) + prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); + + if (prpl_info && g_list_find(gaim_connections_get_all(), gc) && + prpl_info->set_idle) + prpl_info->set_idle(gc, time(NULL) - idle_time); + } } void