Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
9948:b13013595c08 | 9949:ced29c7b396c |
---|---|
87 #endif /* USE_SCREENSAVER */ | 87 #endif /* USE_SCREENSAVER */ |
88 idle_time = t - gc->last_sent_time; | 88 idle_time = t - gc->last_sent_time; |
89 | 89 |
90 if (gaim_prefs_get_bool("/core/away/away_when_idle") && | 90 if (gaim_prefs_get_bool("/core/away/away_when_idle") && |
91 (idle_time > (60 * gaim_prefs_get_int("/core/away/mins_before_away"))) | 91 (idle_time > (60 * gaim_prefs_get_int("/core/away/mins_before_away"))) |
92 && (!gc->is_auto_away)) { | 92 && (!gc->is_auto_away)) |
93 { | |
94 GaimPresence *presence; | |
93 | 95 |
94 if (!gc->away || (!*gc->away && (!gc->away_state || | 96 presence = gaim_account_get_presence(account); |
95 !strcmp(gc->away_state, GAIM_AWAY_CUSTOM)))) { | 97 |
98 if (gaim_presence_is_available(presence)) | |
99 { | |
100 /* XXX CORE/UI | |
96 struct away_message *default_away = NULL; | 101 struct away_message *default_away = NULL; |
102 GSList *l; | |
103 */ | |
97 const char *default_name; | 104 const char *default_name; |
98 GSList *l; | |
99 | 105 |
100 default_name = gaim_prefs_get_string("/core/away/default_message"); | 106 default_name = gaim_prefs_get_string("/core/away/default_message"); |
101 | 107 /* XXX CORE/UI |
102 for(l = away_messages; l; l = l->next) { | 108 for(l = away_messages; l; l = l->next) { |
103 if(!strcmp(default_name, ((struct away_message *)l->data)->name)) { | 109 if(!strcmp(default_name, ((struct away_message *)l->data)->name)) { |
104 default_away = l->data; | 110 default_away = l->data; |
105 break; | 111 break; |
106 } | 112 } |