comparison src/idle.c @ 2372:2927c2c26fe6

[gaim-migrate @ 2385] reformatting. nothing else. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 27 Sep 2001 19:17:11 +0000
parents bd9d403fb15b
children 427ccd7dfdd2
comparison
equal deleted inserted replaced
2371:db02399a9ad7 2372:2927c2c26fe6
67 idle_time = 0; 67 idle_time = 0;
68 } else 68 } else
69 #endif /* USE_SCREENSAVER */ 69 #endif /* USE_SCREENSAVER */
70 idle_time = t - gc->lastsent; 70 idle_time = t - gc->lastsent;
71 71
72 if ((away_options & OPT_AWAY_AUTO) && (idle_time > (60 * auto_away)) && 72 if ((away_options & OPT_AWAY_AUTO) && (idle_time > (60 * auto_away)) && (!gc->is_auto_away)) {
73 (!gc->is_auto_away)) {
74 if (!gc->away) { 73 if (!gc->away) {
75 debug_printf("making %s away automatically\n", gc->username); 74 debug_printf("making %s away automatically\n", gc->username);
76 if (g_slist_length(connections) == 1) 75 if (g_slist_length(connections) == 1)
77 do_away_message(NULL, default_away); 76 do_away_message(NULL, default_away);
78 else if (default_away) 77 else if (default_away)