changeset 21325:d7a43e142c6e

An identity does not always have a name; for example, Google Talk web folks can have type 'web', category 'client', no name.
author Evan Schoenberg <evan.s@dreskin.net>
date Sun, 11 Nov 2007 16:45:19 +0000
parents 97dc2a474513
children 6ba02326c9e1 dccfd999ffe7
files libpurple/protocols/jabber/caps.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/caps.c	Sun Nov 11 15:57:35 2007 +0000
+++ b/libpurple/protocols/jabber/caps.c	Sun Nov 11 16:45:19 2007 +0000
@@ -232,7 +232,8 @@
 		xmlnode *identity = xmlnode_new_child(client, "identity");
 		xmlnode_set_attrib(identity, "category", id->category);
 		xmlnode_set_attrib(identity, "type", id->type);
-		xmlnode_set_attrib(identity, "name", id->name);
+		if (id->name)
+			xmlnode_set_attrib(identity, "name", id->name);
 	}
 
 	for(iter = props->features; iter; iter = g_list_next(iter)) {