pidgin.next.minor: 7b19f840: Make group names case insensitive, which...

sadrul at pidgin.im sadrul at pidgin.im
Mon May 12 22:51:01 EDT 2008


-----------------------------------------------------------------
Revision: 7b19f840f6863f084208b347962badae53aa17a4
Ancestor: 8fb2e6e5dc4caa59de863ddf0ae9827617caaaf2
Author: sadrul at pidgin.im
Date: 2008-05-13T02:48:08
Branch: im.pidgin.pidgin.next.minor
URL: http://d.pidgin.im/viewmtn/revision/info/7b19f840f6863f084208b347962badae53aa17a4

Modified files:
        libpurple/blist.c

ChangeLog: 

Make group names case insensitive, which is the case in the official MSN,
Yahoo and AIM clients. This should fix a number of bugs related to
deleting groups. I am committing this in .next.minor hoping it gives us
enough time to find any bugs this may cause.
Fixes #4554, #3342, #4900.

-------------- next part --------------
============================================================
--- libpurple/blist.c	0b556c797ea883ca59a0c070b6e95b388cd9ee19
+++ libpurple/blist.c	d7481d5a95775f0bf27dab95782d8f06cfce77a2
@@ -2193,7 +2193,7 @@ PurpleGroup *purple_find_group(const cha
 	g_return_val_if_fail((name != NULL) && (*name != '\0'), NULL);
 
 	for (node = purplebuddylist->root; node != NULL; node = node->next) {
-		if (!strcmp(((PurpleGroup *)node)->name, name))
+		if (!purple_utf8_strcasecmp(((PurpleGroup *)node)->name, name))
 			return (PurpleGroup *)node;
 	}
 


More information about the Commits mailing list