Mercurial > pidgin
comparison plugins/jabber/jabber.c @ 1791:b4cc5f391133
[gaim-migrate @ 1801]
damn you temas.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 01 May 2001 07:44:01 +0000 |
parents | 511af0edd6f1 |
children | ca53277c0204 |
comparison
equal
deleted
inserted
replaced
1790:c4864ac7792b | 1791:b4cc5f391133 |
---|---|
501 static gboolean find_chat_buddy(struct conversation *b, char *name) | 501 static gboolean find_chat_buddy(struct conversation *b, char *name) |
502 { | 502 { |
503 GList *m = b->in_room; | 503 GList *m = b->in_room; |
504 | 504 |
505 while (m) { | 505 while (m) { |
506 if (!strcasecmp(m->data, name)) | 506 if (!strcmp(m->data, name)) |
507 return TRUE; | 507 return TRUE; |
508 m = m->next; | 508 m = m->next; |
509 } | 509 } |
510 | 510 |
511 return FALSE; | 511 return FALSE; |
767 if (type && !strcmp(type, "unavailable")) { | 767 if (type && !strcmp(type, "unavailable")) { |
768 struct jabber_data *jd; | 768 struct jabber_data *jd; |
769 if (!jc) | 769 if (!jc) |
770 jc = find_existing_chat(GJ_GC(j), who); | 770 jc = find_existing_chat(GJ_GC(j), who); |
771 jd = jc->gc->proto_data; | 771 jd = jc->gc->proto_data; |
772 if (strcasecmp(who->resource, jc->Jid->resource)) { | 772 if (strcmp(who->resource, jc->Jid->resource)) { |
773 remove_chat_buddy(jc->b, who->resource); | 773 remove_chat_buddy(jc->b, who->resource); |
774 return; | 774 return; |
775 } | 775 } |
776 | 776 |
777 jd->existing_chats = g_slist_remove(jd->existing_chats, jc); | 777 jd->existing_chats = g_slist_remove(jd->existing_chats, jc); |