diff libpurple/protocols/jabber/jabber.c @ 15916:8bcd5840fb12

Don't advertise that we support the adverts, invite and translate families for oscar. This makes us a little easier to identify... but I don't believe AOL will come after us.
author Mark Doliner <mark@kingant.net>
date Sun, 25 Mar 2007 06:24:04 +0000
parents 87ea711b9781
children 4be5d38ee117
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.c	Sun Mar 25 06:16:56 2007 +0000
+++ b/libpurple/protocols/jabber/jabber.c	Sun Mar 25 06:24:04 2007 +0000
@@ -162,6 +162,7 @@
 static void jabber_stream_handle_error(JabberStream *js, xmlnode *packet)
 {
 	char *msg = jabber_parse_error(js, packet);
+purple_debug_error("MARK", "in jabber_stream_handle_error\n");
 
 	purple_connection_error(js->gc, msg);
 	g_free(msg);
@@ -1453,6 +1454,7 @@
 	const char *code = NULL, *text = NULL;
 	const char *xmlns = xmlnode_get_namespace(packet);
 	char *cdata = NULL;
+purple_debug_error("MARK", "in jabber_parse_error, packet->name=%s, xmlns=%s, type=%d, data=%s\n", packet->name, packet->xmlns, packet->type, packet->data);
 
 	if((error = xmlnode_get_child(packet, "error"))) {
 		cdata = xmlnode_get_data(error);
@@ -1529,11 +1531,13 @@
 			text = _("Authentication Failure");
 		}
 	} else if(!strcmp(packet->name, "stream:error")) {
+purple_debug_error("MARK", "stream:error\n");
 		if(xmlnode_get_child(packet, "bad-format")) {
 			text = _("Bad Format");
 		} else if(xmlnode_get_child(packet, "bad-namespace-prefix")) {
 			text = _("Bad Namespace Prefix");
 		} else if(xmlnode_get_child(packet, "conflict")) {
+purple_debug_error("MARK", "conflict\n");
 			js->gc->wants_to_die = TRUE;
 			text = _("Resource Conflict");
 		} else if(xmlnode_get_child(packet, "connection-timeout")) {
@@ -1583,6 +1587,7 @@
 		}
 	}
 
+purple_debug_error("MARK", "text=\n", text);
 	if(text || cdata) {
 		char *ret = g_strdup_printf("%s%s%s", code ? code : "",
 				code ? ": " : "", text ? text : cdata);