From: Nathan W. <fac...@us...> - 2004-01-01 18:20:05
|
Update of /cvsroot/gaim/gaim/src In directory sc8-pr-cvs1:/tmp/cvs-serv12010/src Modified Files: blist.c Log Message: fix the crash when chats are still open and an account signs off Index: blist.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/blist.c,v retrieving revision 1.124 retrieving revision 1.125 diff -u -d -p -r1.124 -r1.125 --- blist.c 1 Jan 2004 17:49:53 -0000 1.124 +++ blist.c 1 Jan 2004 18:20:01 -0000 1.125 @@ -1343,11 +1343,17 @@ gaim_blist_find_chat(GaimAccount *accoun 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); |