# HG changeset patch # User Christian Hammond # Date 1068502398 0 # Node ID 603a58cd23dc6d5ef1f4bc3463f6a384106bf5e2 # Parent 4ab8ec97576c43368908fed450ae16cfd820ce8f [gaim-migrate @ 8082] This should fix the problem where some MSN users in the buddy list were showing the offline emblem, indicating that gaim and the server disagree as to whether or not the buddy should be there. That icon was for testing purposes, and should never have been seen by a user. The problem was that in the code, we were looking for a list of all buddies, and would add new ones if not found. The problem was that we'd get duplicates, as some would be in foo@bar.com form, and some in FOO@bar.com form, or mixed-case, or whatever. Now, our msn_normalize() converts a string to lowercase first. We'll see how well this works, but it fixed the problem here. committer: Tailor Script diff -r 4ab8ec97576c -r 603a58cd23dc src/protocols/msn/msn.c --- a/src/protocols/msn/msn.c Mon Nov 10 19:36:13 2003 +0000 +++ b/src/protocols/msn/msn.c Mon Nov 10 22:13:18 2003 +0000 @@ -1210,12 +1210,17 @@ msn_normalize(const GaimAccount *account, const char *str) { static char buf[BUF_LEN]; + char *tmp; g_return_val_if_fail(str != NULL, NULL); g_snprintf(buf, sizeof(buf), "%s%s", str, (strchr(str, '@') ? "" : "@hotmail.com")); + tmp = g_utf8_strdown(buf, -1); + strncpy(buf, tmp, sizeof(buf)); + g_free(tmp); + return buf; }