Mercurial > pidgin
comparison libpurple/protocols/jabber/oob.c @ 28650:9ae3e70a327b
jabber: More namespaces! This is a good stopping point for now.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Fri, 27 Nov 2009 17:07:19 +0000 |
parents | fa7f3426ed13 |
children | 1cdae196aac8 |
comparison
equal
deleted
inserted
replaced
28649:8d8a1afc4268 | 28650:9ae3e70a327b |
---|---|
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 } |