Mercurial > pidgin.yaz
comparison src/conversation.c @ 1918:fe79493094e7
[gaim-migrate @ 1928]
stupidity
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 29 May 2001 23:51:16 +0000 |
parents | 9aa7cd7f5948 |
children | cfdb6a9d3af8 |
comparison
equal
deleted
inserted
replaced
1917:b1e3b9febac7 | 1918:fe79493094e7 |
---|---|
1862 C = (struct conversation *)c->data; | 1862 C = (struct conversation *)c->data; |
1863 c = c->next; | 1863 c = c->next; |
1864 | 1864 |
1865 create_convo_menu(C); | 1865 create_convo_menu(C); |
1866 | 1866 |
1867 if (g_slist_index(connections, C->gc) < 0) | 1867 if (g_slist_index(connections, C->gc) >= 0) |
1868 continue; | 1868 continue; |
1869 | 1869 |
1870 set_convo_gc(C, connections ? connections->data : NULL); | 1870 set_convo_gc(C, connections ? connections->data : NULL); |
1871 } | 1871 } |
1872 } | 1872 } |
1874 void set_convo_gc(struct conversation *c, struct gaim_connection *gc) | 1874 void set_convo_gc(struct conversation *c, struct gaim_connection *gc) |
1875 { | 1875 { |
1876 if (c->gc == gc) | 1876 if (c->gc == gc) |
1877 return; | 1877 return; |
1878 | 1878 |
1879 if (c->gc && c->gc->prpl && c->gc->prpl->remove_convo) | 1879 if (c->gc && g_slist_find(connections, c->gc) && c->gc->prpl && c->gc->prpl->remove_convo) |
1880 (*c->gc->prpl->remove_convo)(c->gc, c); | 1880 (*c->gc->prpl->remove_convo)(c->gc, c); |
1881 | 1881 |
1882 c->gc = gc; | 1882 c->gc = gc; |
1883 | 1883 |
1884 if (gc) | 1884 if (gc) |