Mercurial > pidgin
comparison libpurple/conversation.c @ 17434:6418bcb7809a
purple_conv_chat_cb_find should be case sensitive in finding users to make
sure nick changes that only affect case are handled correctly. Fixes #349.
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sat, 02 Jun 2007 14:06:33 +0000 |
parents | 7ade887fd3f6 |
children | 4b18cc7b6177 70fb7663a918 2a6fb7c6d030 |
comparison
equal
deleted
inserted
replaced
17432:4d53ccae32b0 | 17434:6418bcb7809a |
---|---|
1958 g_return_val_if_fail(chat != NULL, NULL); | 1958 g_return_val_if_fail(chat != NULL, NULL); |
1959 g_return_val_if_fail(name != NULL, NULL); | 1959 g_return_val_if_fail(name != NULL, NULL); |
1960 | 1960 |
1961 for (l = purple_conv_chat_get_users(chat); l; l = l->next) { | 1961 for (l = purple_conv_chat_get_users(chat); l; l = l->next) { |
1962 cb = l->data; | 1962 cb = l->data; |
1963 if (!purple_utf8_strcasecmp(cb->name, name)) | 1963 if (!g_utf8_collate(cb->name, name)) |
1964 return cb; | 1964 return cb; |
1965 } | 1965 } |
1966 | 1966 |
1967 return NULL; | 1967 return NULL; |
1968 } | 1968 } |