Mercurial > pidgin
comparison src/blist.c @ 7999:38df71d58500
[gaim-migrate @ 8676]
this fixes the add/remove button showing up incorrectly for jabber chat rooms
when you add or remove a chat, the button doesn't automagically update in the
chat window. i'm too hungry to figure that out right now, so someone else
should do it.
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sun, 04 Jan 2004 23:07:41 +0000 |
parents | a6eb0e250417 |
children | 35c2526dba16 |
comparison
equal
deleted
inserted
replaced
7998:5e193b3a2342 | 7999:38df71d58500 |
---|---|
1344 g_return_val_if_fail(name != NULL, NULL); | 1344 g_return_val_if_fail(name != NULL, NULL); |
1345 | 1345 |
1346 if(!gaim_account_is_connected(account)) | 1346 if(!gaim_account_is_connected(account)) |
1347 return NULL; | 1347 return NULL; |
1348 | 1348 |
1349 prpl = gaim_find_prpl(gaim_account_get_protocol_id(account)); | |
1350 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(prpl); | |
1351 | |
1352 if(prpl_info->find_blist_chat != NULL) | |
1353 return prpl_info->find_blist_chat(account, name); | |
1354 | |
1349 for (group = gaimbuddylist->root; group != NULL; group = group->next) { | 1355 for (group = gaimbuddylist->root; group != NULL; group = group->next) { |
1350 for (node = group->child; node != NULL; node = node->next) { | 1356 for (node = group->child; node != NULL; node = node->next) { |
1351 if (GAIM_BLIST_NODE_IS_CHAT(node)) { | 1357 if (GAIM_BLIST_NODE_IS_CHAT(node)) { |
1352 | 1358 |
1353 chat = (GaimChat*)node; | 1359 chat = (GaimChat*)node; |
1354 | 1360 |
1355 if(!gaim_account_is_connected(chat->account)) | 1361 if(account != chat->account) |
1356 continue; | 1362 continue; |
1357 | |
1358 prpl = gaim_find_prpl(gaim_account_get_protocol_id(chat->account)); | |
1359 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(prpl); | |
1360 | 1363 |
1361 parts = prpl_info->chat_info( | 1364 parts = prpl_info->chat_info( |
1362 gaim_account_get_connection(chat->account)); | 1365 gaim_account_get_connection(chat->account)); |
1363 | 1366 |
1364 pce = parts->data; | 1367 pce = parts->data; |