Mercurial > pidgin
diff 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 |
line wrap: on
line diff
--- a/src/blist.c Sun Jan 04 22:26:40 2004 +0000 +++ b/src/blist.c Sun Jan 04 23:07:41 2004 +0000 @@ -1346,18 +1346,21 @@ if(!gaim_account_is_connected(account)) return NULL; + prpl = gaim_find_prpl(gaim_account_get_protocol_id(account)); + prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(prpl); + + if(prpl_info->find_blist_chat != NULL) + return prpl_info->find_blist_chat(account, name); + 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)) + if(account != chat->account) continue; - prpl = gaim_find_prpl(gaim_account_get_protocol_id(chat->account)); - prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(prpl); - parts = prpl_info->chat_info( gaim_account_get_connection(chat->account));
