changeset 1353:f6a8bca11766

[gaim-migrate @ 1363] more fixes committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 22 Dec 2000 02:26:11 +0000
parents 2e8213567278
children 6b0a7cea1dd1
files plugins/jabber/jabber.c
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/jabber/jabber.c	Fri Dec 22 02:25:28 2000 +0000
+++ b/plugins/jabber/jabber.c	Fri Dec 22 02:26:11 2000 +0000
@@ -445,11 +445,9 @@
 	from = xmlnode_get_attrib(p->x, "from");
 	type = xmlnode_get_attrib(p->x, "type");
 
-	debug_printf("jabber: presence: %s, %s %s\n", to, from, type);
 	who = jid_new(j->p, from);
 	if (who->user == NULL) {
 		/* FIXME: transport */
-		debug_printf("user was NULL in handlepresence!\n");
 		return;
 	}
 
@@ -521,7 +519,6 @@
 					groupname = xmlnode_get_data(xmlnode_get_firstchild(g));
 					if (who->user == NULL) {
 						/* FIXME: transport */
-						debug_printf("user was NULL in handleroster!\n");
 						g = xmlnode_get_nextsibling(g);
 						continue;
 					}
@@ -549,7 +546,6 @@
 
 			if (who->user == NULL) {
 				/* FIXME: transport */
-				debug_printf("user was NULL in handleroster!\n");
 				x = xmlnode_get_nextsibling(x);
 				continue;
 			}
@@ -735,7 +731,6 @@
 		jid who = jid_new(j->p, name);
 		if (who->user == NULL) {
 			/* FIXME: transport */
-			debug_printf("user was NULL in add_buddy!\n");
 			return;
 		}
 		realwho = g_strdup_printf("%s@%s", who->user, who->server);
@@ -770,6 +765,7 @@
 
 	x = jutil_iqnew(JPACKET__SET, NS_ROSTER);
 	y = xmlnode_insert_tag(xmlnode_get_tag(x, "query"), "item");
+	xmlnode_put_attrib(y, "jid", realwho);
 	xmlnode_put_attrib(y, "subscription", "remove");
 	gjab_send(((struct jabber_data *)gc->proto_data)->jc, x);