Mercurial > pidgin
comparison src/protocols/jabber/jabber.c @ 2316:ebb5ecb2cd5b
[gaim-migrate @ 2326]
faceprint's patch, slightly modified.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 20 Sep 2001 04:29:56 +0000 |
parents | a87ca0aa1840 |
children | 569ae9f2bb89 |
comparison
equal
deleted
inserted
replaced
2315:7ec21662ffc2 | 2316:ebb5ecb2cd5b |
---|---|
1109 | 1109 |
1110 from = xmlnode_get_attrib(p->x, "from"); | 1110 from = xmlnode_get_attrib(p->x, "from"); |
1111 querynode = xmlnode_get_tag(p->x, "query"); | 1111 querynode = xmlnode_get_tag(p->x, "query"); |
1112 xmlns = xmlnode_get_attrib(querynode, "xmlns"); | 1112 xmlns = xmlnode_get_attrib(querynode, "xmlns"); |
1113 vcard = xmlnode_get_tag(p->x, "vCard"); | 1113 vcard = xmlnode_get_tag(p->x, "vCard"); |
1114 if (!vcard) | |
1115 vcard = xmlnode_get_tag(p->x, "VCARD"); | |
1114 | 1116 |
1115 if (NSCHECK(querynode, NS_ROSTER)) { | 1117 if (NSCHECK(querynode, NS_ROSTER)) { |
1116 jabber_handleroster(j, querynode); | 1118 jabber_handleroster(j, querynode); |
1117 } else if (NSCHECK(querynode, NS_VCARD)) { | 1119 } else if (NSCHECK(querynode, NS_VCARD)) { |
1118 jabber_handlevcard(j, querynode, from); | 1120 jabber_handlevcard(j, querynode, from); |
1119 } else if(vcard) { | 1121 } else if (vcard) { |
1120 jabber_handlevcard(j, vcard, from); | 1122 jabber_handlevcard(j, vcard, from); |
1121 } else { | 1123 } else { |
1122 /* debug_printf("jabber:iq:query: %s\n", xmlns); */ | 1124 /* debug_printf("jabber:iq:query: %s\n", xmlns); */ |
1123 } | 1125 } |
1124 | 1126 |