src/status.c

changeset 11551
ba20005d8f78
parent 11522
c2a0d620f903
child 11575
e3d33128e2a1
--- 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

mercurial