Mercurial > pidgin
diff src/idle.c @ 5748:c6a30e1868ae
[gaim-migrate @ 6173]
another pref converted
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Wed, 04 Jun 2003 16:44:08 +0000 |
parents | 6500a6c8d679 |
children | 9587ee01dc5d |
line wrap: on
line diff
--- a/src/idle.c Wed Jun 04 16:18:33 2003 +0000 +++ b/src/idle.c Wed Jun 04 16:44:08 2003 +0000 @@ -87,7 +87,8 @@ idle_time = t - gc->last_sent_time; if (gaim_prefs_get_bool("/core/away/away_when_idle") && - (idle_time > (60 * auto_away)) && (!gc->is_auto_away)) { + (idle_time > (60 * gaim_prefs_get_int("/core/away/mins_before_away"))) + && (!gc->is_auto_away)) { if (!gc->away) { gaim_debug(GAIM_DEBUG_INFO, "idle", @@ -101,7 +102,8 @@ set_default_away(NULL, (gpointer)g_slist_index(away_messages, default_away)); } else gc->is_auto_away = 2; - } else if (gc->is_auto_away && idle_time < 60 * auto_away) { + } else if (gc->is_auto_away && + idle_time < 60 * gaim_prefs_get_int("/core/away/mins_before_away")) { if (gc->is_auto_away == 2) { gc->is_auto_away = 0; return TRUE;