Mercurial > pidgin.yaz
diff src/idle.c @ 9949:ced29c7b396c
[gaim-migrate @ 10845]
(00:25:10) LSchiere: datallah: commit message?
(00:25:40) datallah: LSchiere: nah.. nothing comes to me
datallah undertook the heroic effort of merging in all the .rejs and fixing
things up from the unclean merge of the status rewrite
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sat, 04 Sep 2004 04:27:05 +0000 |
parents | e4a27c9aec4c |
children | bdec08a8fc5b |
line wrap: on
line diff
--- a/src/idle.c Sat Sep 04 03:33:16 2004 +0000 +++ b/src/idle.c Sat Sep 04 04:27:05 2004 +0000 @@ -89,16 +89,22 @@ if (gaim_prefs_get_bool("/core/away/away_when_idle") && (idle_time > (60 * gaim_prefs_get_int("/core/away/mins_before_away"))) - && (!gc->is_auto_away)) { + && (!gc->is_auto_away)) + { + GaimPresence *presence; + + presence = gaim_account_get_presence(account); - if (!gc->away || (!*gc->away && (!gc->away_state || - !strcmp(gc->away_state, GAIM_AWAY_CUSTOM)))) { + if (gaim_presence_is_available(presence)) + { +/* XXX CORE/UI struct away_message *default_away = NULL; + GSList *l; +*/ const char *default_name; - GSList *l; default_name = gaim_prefs_get_string("/core/away/default_message"); - +/* XXX CORE/UI for(l = away_messages; l; l = l->next) { if(!strcmp(default_name, ((struct away_message *)l->data)->name)) { default_away = l->data;