comparison src/idle.c @ 9693:3c71f18b2394

[gaim-migrate @ 10547] paco-paco says this doesn't blow up for him, so maybe it'll fix the problem committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Fri, 06 Aug 2004 03:19:00 +0000
parents e2a9255c4897
children 4d05b6e9e9cd
comparison
equal deleted inserted replaced
9692:e2a9255c4897 9693:3c71f18b2394
88 88
89 if (gaim_prefs_get_bool("/core/away/away_when_idle") && 89 if (gaim_prefs_get_bool("/core/away/away_when_idle") &&
90 (idle_time > (60 * gaim_prefs_get_int("/core/away/mins_before_away"))) 90 (idle_time > (60 * gaim_prefs_get_int("/core/away/mins_before_away")))
91 && (!gc->is_auto_away)) { 91 && (!gc->is_auto_away)) {
92 92
93 if (!gc->away) { 93 if (!gc->away || (!*gc->away && (!gc->away_state ||
94 !strcmp(gc->away_state, GAIM_AWAY_CUSTOM)))) {
94 struct away_message *default_away = NULL; 95 struct away_message *default_away = NULL;
95 const char *default_name; 96 const char *default_name;
96 GSList *l; 97 GSList *l;
97 98
98 default_name = gaim_prefs_get_string("/core/away/default_message"); 99 default_name = gaim_prefs_get_string("/core/away/default_message");