comparison src/conversation.c @ 4478:fa2d74e20a89

[gaim-migrate @ 4753] grp2 is already defined in the windows header file, so I renamed it. Also, we're now opening buddy icon files for writing with "wb" instead of "w". Thanks Herman. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Thu, 30 Jan 2003 19:24:48 +0000
parents 62c1e5e656d0
children b30b0a02ada0
comparison
equal deleted inserted replaced
4477:2ea86ba4670b 4478:fa2d74e20a89
2082 /* Go through the list of IMs and find one with this group. */ 2082 /* Go through the list of IMs and find one with this group. */
2083 for (wins = gaim_get_windows(); wins != NULL; wins = wins->next) { 2083 for (wins = gaim_get_windows(); wins != NULL; wins = wins->next) {
2084 struct gaim_window *win2; 2084 struct gaim_window *win2;
2085 struct gaim_conversation *conv2; 2085 struct gaim_conversation *conv2;
2086 struct buddy *b2; 2086 struct buddy *b2;
2087 struct group *grp2 = NULL; 2087 struct group *g2 = NULL;
2088 2088
2089 win2 = (struct gaim_window *)wins->data; 2089 win2 = (struct gaim_window *)wins->data;
2090 2090
2091 for (convs = gaim_window_get_conversations(win2); 2091 for (convs = gaim_window_get_conversations(win2);
2092 convs != NULL; 2092 convs != NULL;
2096 2096
2097 b2 = find_buddy(gaim_conversation_get_user(conv2), 2097 b2 = find_buddy(gaim_conversation_get_user(conv2),
2098 gaim_conversation_get_name(conv2)); 2098 gaim_conversation_get_name(conv2));
2099 2099
2100 if (b2 != NULL) 2100 if (b2 != NULL)
2101 grp2 = find_group_by_buddy(b2); 2101 g2 = find_group_by_buddy(b2);
2102 2102
2103 if (grp == grp2) { 2103 if (grp == g2) {
2104 gaim_window_add_conversation(win2, conv); 2104 gaim_window_add_conversation(win2, conv);
2105 2105
2106 return; 2106 return;
2107 } 2107 }
2108 } 2108 }