libpurple/protocols/qq/qq.c

branch
sadrul.struct.hiding
changeset 24398
4865c2ee6ea8
parent 24314
587e97c2b707
child 24571
77c103347d66
equal deleted inserted replaced
24395:8cab8ad0cba3 24398:4865c2ee6ea8
583 */ 583 */
584 584
585 static void _qq_menu_unsubscribe_group(PurpleBlistNode * node) 585 static void _qq_menu_unsubscribe_group(PurpleBlistNode * node)
586 { 586 {
587 PurpleChat *chat = (PurpleChat *)node; 587 PurpleChat *chat = (PurpleChat *)node;
588 PurpleConnection *gc = purple_account_get_connection(chat->account); 588 PurpleConnection *gc;
589 GHashTable *components = chat -> components; 589 GHashTable *components;
590 590
591 g_return_if_fail(PURPLE_BLIST_NODE_IS_CHAT(node)); 591 g_return_if_fail(PURPLE_BLIST_NODE_IS_CHAT(node));
592
593 gc = purple_account_get_connection(purple_chat_get_account(chat));
594 components = purple_chat_get_components(chat);
592 595
593 g_return_if_fail(components != NULL); 596 g_return_if_fail(components != NULL);
594 qq_group_exit(gc, components); 597 qq_group_exit(gc, components);
595 } 598 }
596 599

mercurial