Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/oob.c @ 29070:5c77b620375c
merged with im.pidgin.pidgin
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Mon, 30 Nov 2009 16:07:54 +0900 |
parents | 9ae3e70a327b |
children | 1cdae196aac8 |
comparison
equal
deleted
inserted
replaced
29018:1929b7a0c2c8 | 29070:5c77b620375c |
---|---|
168 y = xmlnode_new_child(iq->node, "error"); | 168 y = xmlnode_new_child(iq->node, "error"); |
169 xmlnode_set_attrib(y, "code", code); | 169 xmlnode_set_attrib(y, "code", code); |
170 if(!strcmp(code, "406")) { | 170 if(!strcmp(code, "406")) { |
171 z = xmlnode_new_child(y, "not-acceptable"); | 171 z = xmlnode_new_child(y, "not-acceptable"); |
172 xmlnode_set_attrib(y, "type", "modify"); | 172 xmlnode_set_attrib(y, "type", "modify"); |
173 xmlnode_set_namespace(z, "urn:ietf:params:xml:ns:xmpp-stanzas"); | 173 xmlnode_set_namespace(z, NS_XMPP_STANZAS); |
174 } else if(!strcmp(code, "404")) { | 174 } else if(!strcmp(code, "404")) { |
175 z = xmlnode_new_child(y, "not-found"); | 175 z = xmlnode_new_child(y, "not-found"); |
176 xmlnode_set_attrib(y, "type", "cancel"); | 176 xmlnode_set_attrib(y, "type", "cancel"); |
177 xmlnode_set_namespace(z, "urn:ietf:params:xml:ns:xmpp-stanzas"); | 177 xmlnode_set_namespace(z, NS_XMPP_STANZAS); |
178 } | 178 } |
179 jabber_iq_send(iq); | 179 jabber_iq_send(iq); |
180 | 180 |
181 jabber_oob_xfer_free(xfer); | 181 jabber_oob_xfer_free(xfer); |
182 } | 182 } |