From: <ebl...@us...> - 2006-06-08 04:27:11
|
Revision: 16232 Author: eblanton Date: 2006-06-07 21:27:04 -0700 (Wed, 07 Jun 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16232&view=rev Log Message: ----------- Don Seiler submitted this patch to bug #1426339. It compensates for a jabber server error where some broken servers send more than one group name with a buddy. Or something like that. In any case, the server was broken and Gaim didn't handle it very gracefully, and it's a one-line fix. Modified Paths: -------------- trunk/src/protocols/jabber/roster.c Modified: trunk/src/protocols/jabber/roster.c =================================================================== --- trunk/src/protocols/jabber/roster.c 2006-06-08 03:28:18 UTC (rev 16231) +++ trunk/src/protocols/jabber/roster.c 2006-06-08 04:27:04 UTC (rev 16232) @@ -21,6 +21,7 @@ #include "internal.h" #include "debug.h" #include "server.h" +#include "util.h" #include "buddy.h" #include "presence.h" @@ -202,7 +203,9 @@ if(!(group_name = xmlnode_get_data(group))) group_name = g_strdup(""); - groups = g_slist_append(groups, group_name); + + if (g_slist_find_custom(groups, group_name, (GCompareFunc)gaim_utf8_strcasecmp) == NULL) + groups = g_slist_append(groups, group_name); } add_gaim_buddies_in_groups(js, jid, name, groups); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |