comparison libpurple/protocols/jabber/buddy.c @ 20814:bde477ec6a71

Stop jabber setting wants_to_die itself. This involved plumbing disconnection reasons into jabber_parse_error in a slightly dubious fashion. I'd appreciate someone sanity-checking this rev.
author Will Thompson <will.thompson@collabora.co.uk>
date Tue, 09 Oct 2007 13:32:58 +0000
parents ab3c87375b17
children e747ac0c42d6
comparison
equal deleted inserted replaced
20813:66e7b104b4ea 20814:bde477ec6a71
2332 2332
2333 if(!(from = xmlnode_get_attrib(packet, "from"))) 2333 if(!(from = xmlnode_get_attrib(packet, "from")))
2334 return; 2334 return;
2335 2335
2336 if(!(type = xmlnode_get_attrib(packet, "type")) || !strcmp(type, "error")) { 2336 if(!(type = xmlnode_get_attrib(packet, "type")) || !strcmp(type, "error")) {
2337 char *msg = jabber_parse_error(js, packet); 2337 char *msg = jabber_parse_error(js, packet, NULL);
2338 2338
2339 if(!msg) 2339 if(!msg)
2340 msg = g_strdup(_("Unknown error")); 2340 msg = g_strdup(_("Unknown error"));
2341 2341
2342 purple_notify_error(js->gc, _("Directory Query Failed"), 2342 purple_notify_error(js->gc, _("Directory Query Failed"),