diff 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
line wrap: on
line diff
--- a/src/idle.c	Thu May 29 19:48:13 2003 +0000
+++ b/src/idle.c	Thu May 29 19:50:19 2003 +0000
@@ -40,6 +40,7 @@
 #include "gaim.h"
 #include "multi.h"
 #include "prpl.h"
+#include "prefs.h"
 
 #define IDLEMARK 600   	/* 10 minutes! */
 
@@ -78,7 +79,7 @@
 #endif /* USE_SCREENSAVER */
 		idle_time = t - gc->lastsent;
 
-	if ((away_options & OPT_AWAY_AUTO) && (idle_time > (60 * auto_away)) && (!gc->is_auto_away)) {
+	if (gaim_prefs_get_bool("/core/away/away_when_idle") && (idle_time > (60 * auto_away)) && (!gc->is_auto_away)) {
 		if (!gc->away) {
 			gaim_debug(GAIM_DEBUG_INFO, "idle",
 					   "Making %s away automatically\n", gc->username);