changeset 25019:f6272b156873

* jabber_caps_jabber_identity_compare() compares xml:lang too, now.
author Tobias Markmann <tfar@soc.pidgin.im>
date Sun, 22 Jun 2008 18:30:12 +0000
parents 2a6a37c7970b
children 9867a406707e
files libpurple/protocols/jabber/caps.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/caps.c	Sun Jun 22 17:25:23 2008 +0000
+++ b/libpurple/protocols/jabber/caps.c	Sun Jun 22 18:30:12 2008 +0000
@@ -569,12 +569,17 @@
 	const JabberIdentity *ac;
 	const JabberIdentity *bc;
 	gint cat_cmp;
+	gint typ_cmp;
 	
 	ac = a;
 	bc = b;
 	
 	if ((cat_cmp = strcmp(ac->category, bc->category)) == 0) {
-		return strcmp(ac->type, bc->type);
+		if ((typ_cmp = strcmp(ac->type, bc->type)) == 0) {
+			return strcmp(ac->lang, bc->lang);
+		} else {
+			return typ_cmp;
+		}
 	} else {
 		return cat_cmp;
 	}