Mercurial > hg
changeset 783:25022410f80f
Use case sensitive group names
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 01 Apr 2006 17:33:26 +0200 |
parents | 19121d9f4aa2 |
children | d7f3b58db522 |
files | mcabber/src/roster.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/src/roster.c Sat Apr 01 15:57:14 2006 +0200 +++ b/mcabber/src/roster.c Sat Apr 01 17:33:26 2006 +0200 @@ -206,12 +206,12 @@ static gint roster_compare_name_type(roster *a, roster *b) { if (! (a->type & b->type)) return -1; // arbitrary (but should be != 0, of course) - return strcasecmp(a->name, b->name); + return strcmp(a->name, b->name); } // Comparison function used to sort the roster (by name) static gint roster_compare_name(roster *a, roster *b) { - return strcasecmp(a->name, b->name); + return strcmp(a->name, b->name); } // Finds a roster element (user, group, agent...), by jid or name @@ -243,7 +243,7 @@ while (sl_roster_elt) { roster *roster_elt = (roster*)sl_roster_elt->data; if (roster_type & ROSTER_TYPE_GROUP) { - if ((type == namesearch) && !strcasecmp(jidname, roster_elt->name)) + if ((type == namesearch) && !strcmp(jidname, roster_elt->name)) return sl_roster_elt; } res = g_slist_find_custom(roster_elt->list, &sample, comp);