src/gtkconv.c

changeset 10845
72c2fdf8e16c
parent 10843
d9986604e6f1
child 10846
345ede622d46
equal deleted inserted replaced
10844:fb5b88957742 10845:72c2fdf8e16c
909 GaimConvWindow *win = (GaimConvWindow *)data; 909 GaimConvWindow *win = (GaimConvWindow *)data;
910 GaimConversation *conv; 910 GaimConversation *conv;
911 GaimLogType type; 911 GaimLogType type;
912 const char *name; 912 const char *name;
913 GaimAccount *account; 913 GaimAccount *account;
914 GaimBuddy *buddy; 914 GSList *buddies, *cur;
915 915
916 conv = gaim_conv_window_get_active_conversation(win); 916 conv = gaim_conv_window_get_active_conversation(win);
917 917
918 if (gaim_conversation_get_type(conv) == GAIM_CONV_IM) 918 if (gaim_conversation_get_type(conv) == GAIM_CONV_IM)
919 type = GAIM_LOG_IM; 919 type = GAIM_LOG_IM;
923 return; 923 return;
924 924
925 name = gaim_conversation_get_name(conv); 925 name = gaim_conversation_get_name(conv);
926 account = gaim_conversation_get_account(conv); 926 account = gaim_conversation_get_account(conv);
927 927
928 buddy = gaim_find_buddy(account, name); 928 buddies = gaim_find_buddies(account, name);
929 if (buddy != NULL && 929 for (cur = buddies; cur != NULL; cur = cur->next)
930 buddy->node.parent != NULL && 930 {
931 GAIM_BLIST_NODE_IS_CONTACT(buddy->node.parent)) { 931 GaimBlistNode *node = cur->data;
932 932 if ((node != NULL) && (node->next != NULL))
933 gaim_gtk_log_show_contact((GaimContact *)buddy->node.parent); 933 {
934 return; 934 gaim_gtk_log_show_contact((GaimContact *)node->parent);
935 } 935 g_slist_free(buddies);
936 return;
937 }
938 }
939 g_slist_free(buddies);
936 940
937 gaim_gtk_log_show(type, name, account); 941 gaim_gtk_log_show(type, name, account);
938 } 942 }
939 943
940 static void 944 static void

mercurial