comparison plugins/idle.c @ 11974:2ff2965895f3

[gaim-migrate @ 14267] I think this is what was intended here committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Fri, 04 Nov 2005 18:01:55 +0000
parents 73777ad45562
children aadf61b30056
comparison
equal deleted inserted replaced
11973:0fab529c01fc 11974:2ff2965895f3
58 58
59 gaim_debug_info("idle", 59 gaim_debug_info("idle",
60 "setting idle time for %s to %d\n", 60 "setting idle time for %s to %d\n",
61 gaim_account_get_username(acct), mins_idle); 61 gaim_account_get_username(acct), mins_idle);
62 62
63 t -= time(NULL) - (60 * mins_idle); /* subtract seconds idle from current time */ 63 t = time(NULL) - (60 * mins_idle); /* subtract seconds idle from current time */
64 gc->last_sent_time = t; 64 gc->last_sent_time = t;
65 65
66 gaim_presence_set_idle(presence, mins_idle ? TRUE : FALSE, t); 66 gaim_presence_set_idle(presence, mins_idle ? TRUE : FALSE, t);
67 } 67 }
68 68