comparison src/idle.c @ 5548:80e4ba770f97

[gaim-migrate @ 5949] incremental progress committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Thu, 29 May 2003 19:50:19 +0000
parents 0241d6b6702d
children b7319c094153
comparison
equal deleted inserted replaced
5547:90a67ea697f7 5548:80e4ba770f97
38 #endif /* USE_SCREENSAVER */ 38 #endif /* USE_SCREENSAVER */
39 39
40 #include "gaim.h" 40 #include "gaim.h"
41 #include "multi.h" 41 #include "multi.h"
42 #include "prpl.h" 42 #include "prpl.h"
43 #include "prefs.h"
43 44
44 #define IDLEMARK 600 /* 10 minutes! */ 45 #define IDLEMARK 600 /* 10 minutes! */
45 46
46 gint check_idle(gpointer data) 47 gint check_idle(gpointer data)
47 { 48 {
76 #endif 77 #endif
77 } else 78 } else
78 #endif /* USE_SCREENSAVER */ 79 #endif /* USE_SCREENSAVER */
79 idle_time = t - gc->lastsent; 80 idle_time = t - gc->lastsent;
80 81
81 if ((away_options & OPT_AWAY_AUTO) && (idle_time > (60 * auto_away)) && (!gc->is_auto_away)) { 82 if (gaim_prefs_get_bool("/core/away/away_when_idle") && (idle_time > (60 * auto_away)) && (!gc->is_auto_away)) {
82 if (!gc->away) { 83 if (!gc->away) {
83 gaim_debug(GAIM_DEBUG_INFO, "idle", 84 gaim_debug(GAIM_DEBUG_INFO, "idle",
84 "Making %s away automatically\n", gc->username); 85 "Making %s away automatically\n", gc->username);
85 if (g_slist_length(connections) == 1) 86 if (g_slist_length(connections) == 1)
86 do_away_message(NULL, default_away); 87 do_away_message(NULL, default_away);