libpurple/protocols/jabber/oob.c

changeset 28984
1d84517d56eb
parent 28828
7c1855f037e7
child 30708
535bec1e66fb
equal deleted inserted replaced
28983:c7494d5f1440 28984:1d84517d56eb
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 }

mercurial