# HG changeset patch # User Nathan Walp # Date 1072981201 0 # Node ID a6eb0e2504175f7e7ee408584a05c7b9f65f653d # Parent 69c511278aef7171fd2fe41187ac0f1283b0a360 [gaim-migrate @ 8647] fix the crash when chats are still open and an account signs off committer: Tailor Script diff -r 69c511278aef -r a6eb0e250417 src/blist.c --- a/src/blist.c Thu Jan 01 17:49:53 2004 +0000 +++ b/src/blist.c Thu Jan 01 18:20:01 2004 +0000 @@ -1343,12 +1343,18 @@ g_return_val_if_fail(gaim_get_blist() != NULL, NULL); g_return_val_if_fail(name != NULL, NULL); + if(!gaim_account_is_connected(account)) + return NULL; + for (group = gaimbuddylist->root; group != NULL; group = group->next) { for (node = group->child; node != NULL; node = node->next) { if (GAIM_BLIST_NODE_IS_CHAT(node)) { chat = (GaimChat*)node; + if(!gaim_account_is_connected(chat->account)) + continue; + prpl = gaim_find_prpl(gaim_account_get_protocol_id(chat->account)); prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(prpl);