Mercurial > pidgin.yaz
changeset 14316:b3697123b01a
[gaim-migrate @ 17009]
don't crash when we're set idle but not logged in.
committer: Tailor Script <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Thu, 24 Aug 2006 01:13:57 +0000 |
parents | 8793fc8f7064 |
children | c8ddda5d8ec8 |
files | libgaim/protocols/yahoo/yahoo.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libgaim/protocols/yahoo/yahoo.c Wed Aug 23 21:34:43 2006 +0000 +++ b/libgaim/protocols/yahoo/yahoo.c Thu Aug 24 01:13:57 2006 +0000 @@ -3349,6 +3349,9 @@ char *msg = NULL, *msg2 = NULL; GaimStatus *status = NULL; + if (!yd) + return; + if (idle && yd->current_status != YAHOO_STATUS_CUSTOM) yd->current_status = YAHOO_STATUS_IDLE; else if (!idle && yd->current_status == YAHOO_STATUS_IDLE) {