# HG changeset patch
# User Paul Aurich <paul@darkrain42.org>
# Date 1308710145 0
# Node ID 94e1e3ed0bb0f73b59c7214a65d105221ea02de1
# Parent  dc69d22279e5fb5c5ec0cc3b2089255cb900d922
conversation: Use the right comparison type (case-sensitive) for the hash table

Okay, the various types of comparisons done on in-room nicks are annoying.
Seriously, half the code seems to use g_utf8_collate, and the other half
use purple_utf8_strcasecmp.

diff -r dc69d22279e5 -r 94e1e3ed0bb0 libpurple/conversation.c
--- a/libpurple/conversation.c	Tue Jun 21 05:45:24 2011 +0000
+++ b/libpurple/conversation.c	Wed Jun 22 02:35:45 2011 +0000
@@ -73,20 +73,18 @@
 static guint _purple_conversation_user_hash(gconstpointer data)
 {
 	const gchar *name = data;
-	gchar *casefold, *collated;
+	gchar *collated;
 	guint hash;
 
-	casefold = g_utf8_casefold(name, -1);
-	collated = g_utf8_collate_key(casefold, -1);
+	collated = g_utf8_collate_key(name, -1);
 	hash     = g_str_hash(collated);
 	g_free(collated);
-	g_free(casefold);
 	return hash;
 }
 
 static gboolean _purple_conversation_user_equal(gconstpointer a, gconstpointer b)
 {
-	return !purple_utf8_strcasecmp(a, b);
+	return !g_utf8_collate(a, b);
 }
 
 void