Mercurial > pidgin.yaz
comparison plugins/jabber/jabber.c @ 1611:9ff8cac19352
[gaim-migrate @ 1621]
i forget if this is safe or not.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sat, 17 Mar 2001 13:10:00 +0000 |
parents | 497a074fa1c8 |
children | 12bd198b6721 |
comparison
equal
deleted
inserted
replaced
1610:f018f0faddda | 1611:9ff8cac19352 |
---|---|
605 } | 605 } |
606 | 606 |
607 if (!cnv) { | 607 if (!cnv) { |
608 resources = b->proto_data; | 608 resources = b->proto_data; |
609 res = who->resource; | 609 res = who->resource; |
610 while (resources) { | 610 if (res) |
611 if (!strcmp(res, resources->data)) | 611 while (resources) { |
612 break; | 612 if (!strcmp(res, resources->data)) |
613 resources = resources->next; | 613 break; |
614 } | 614 resources = resources->next; |
615 } | |
615 | 616 |
616 if (type && (strcasecmp(type, "unavailable") == 0)) { | 617 if (type && (strcasecmp(type, "unavailable") == 0)) { |
617 g_free(resources->data); | 618 g_free(resources->data); |
618 b->proto_data = g_slist_remove(b->proto_data, resources->data); | 619 b->proto_data = g_slist_remove(b->proto_data, resources->data); |
619 if (!b->proto_data) { | 620 if (!b->proto_data) { |