Mercurial > pidgin
diff plugins/idle.c @ 12272:3ef381cdc47e
[gaim-migrate @ 14574]
This should fix idle time reporting for all accounts. Previously it would
only work for one account because I'm dumb.
We're also doing one idleness check every 5 seconds instead of checking
for each account every 20 seconds.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 30 Nov 2005 06:03:49 +0000 |
parents | aadf61b30056 |
children | 5907fb1e58a0 |
line wrap: on
line diff
--- a/plugins/idle.c Wed Nov 30 06:02:38 2005 +0000 +++ b/plugins/idle.c Wed Nov 30 06:03:49 2005 +0000 @@ -26,6 +26,7 @@ #include "connection.h" #include "debug.h" +#include "idle.h" #include "notify.h" #include "plugin.h" #include "request.h" @@ -62,7 +63,7 @@ gaim_account_get_username(acct), mins_idle); t = time(NULL) - (60 * mins_idle); /* subtract seconds idle from current time */ - gc->last_sent_time = t; + gaim_idle_set(t); gaim_presence_set_idle(presence, mins_idle ? TRUE : FALSE, t); }