comparison src/buddy.c @ 2255:aaa82fd67a7b

[gaim-migrate @ 2265] this is bad. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 10 Sep 2001 17:01:55 +0000
parents 657dbe515608
children f7bf34a3b535
comparison
equal deleted inserted replaced
2254:c0ac78ffe77f 2255:aaa82fd67a7b
2087 2087
2088 return g; 2088 return g;
2089 } 2089 }
2090 2090
2091 static gint log_timeout(struct buddy_show *b) { 2091 static gint log_timeout(struct buddy_show *b) {
2092 /* this part is really just a bad hack because of a bug I can't find */
2093 GSList *s = shows;
2094 while (s) {
2095 struct group_show *gs = s->data;
2096 GSList *m = gs->members;
2097 while (m) {
2098 if (b == m->data)
2099 break;
2100 m = m->next;
2101 }
2102 if (m != NULL)
2103 break;
2104 s = s->next;
2105 }
2106 if (!s)
2107 return 0;
2108
2109 /* this is the real part. */
2092 if (!b->connlist) { 2110 if (!b->connlist) {
2093 struct group_show *g = find_gs_by_bs(b); 2111 struct group_show *g = find_gs_by_bs(b);
2094 g->members = g_slist_remove(g->members, b); 2112 g->members = g_slist_remove(g->members, b);
2095 if (blist) 2113 if (blist)
2096 remove_buddy_show(g, b); 2114 remove_buddy_show(g, b);