Mercurial > pidgin.yaz
changeset 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 | 6e0986c82bc5 |
files | src/idle.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/idle.c Sat Oct 22 22:29:40 2005 +0000 +++ b/src/idle.c Sat Oct 22 22:38:00 2005 +0000 @@ -160,7 +160,8 @@ /* Mark our accounts "away" using the idleaway status */ idleaway_name = gaim_prefs_get_string("/core/status/idleaway"); saved_status = gaim_savedstatus_find(idleaway_name); - gaim_savedstatus_activate(saved_status); + if (saved_status) + gaim_savedstatus_activate(saved_status); gc->is_auto_away = GAIM_IDLE_AUTO_AWAY; } else {