Mercurial > pidgin.yaz
comparison src/idle.c @ 11725:743b574c81b9
[gaim-migrate @ 14016]
Don't crash when we hit the idle-away timeout (we don't set ourselves
to away, either, but that'll come eventually)
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 22 Oct 2005 22:38:00 +0000 |
parents | a8ec0a291d14 |
children |
comparison
equal
deleted
inserted
replaced
11724:a8ec0a291d14 | 11725:743b574c81b9 |
---|---|
158 gaim_account_get_username(account)); | 158 gaim_account_get_username(account)); |
159 | 159 |
160 /* Mark our accounts "away" using the idleaway status */ | 160 /* Mark our accounts "away" using the idleaway status */ |
161 idleaway_name = gaim_prefs_get_string("/core/status/idleaway"); | 161 idleaway_name = gaim_prefs_get_string("/core/status/idleaway"); |
162 saved_status = gaim_savedstatus_find(idleaway_name); | 162 saved_status = gaim_savedstatus_find(idleaway_name); |
163 gaim_savedstatus_activate(saved_status); | 163 if (saved_status) |
164 gaim_savedstatus_activate(saved_status); | |
164 | 165 |
165 gc->is_auto_away = GAIM_IDLE_AUTO_AWAY; | 166 gc->is_auto_away = GAIM_IDLE_AUTO_AWAY; |
166 } else { | 167 } else { |
167 gc->is_auto_away = GAIM_IDLE_AWAY_BUT_NOT_AUTO_AWAY; | 168 gc->is_auto_away = GAIM_IDLE_AWAY_BUT_NOT_AUTO_AWAY; |
168 } | 169 } |