changeset 24002:5e51360bb22c

The alias we retrieve from the roster is a private alias; use purple_serv_got_private_alias() to tell the core about it
author Evan Schoenberg <evan.s@dreskin.net>
date Fri, 29 Aug 2008 13:59:59 +0000
parents e7d85f4fb3fc
children 32828b3c0d4f
files libpurple/protocols/jabber/roster.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/roster.c	Fri Aug 29 11:23:31 2008 +0000
+++ b/libpurple/protocols/jabber/roster.c	Fri Aug 29 13:59:59 2008 +0000
@@ -83,11 +83,13 @@
 		if((l = g_slist_find_custom(g2, g->name, (GCompareFunc)strcmp))) {
 			const char *servernick;
 
+			/* Previously stored serverside / buddy-supplied alias */
 			if((servernick = purple_blist_node_get_string((PurpleBlistNode*)b, "servernick")))
 				serv_got_alias(js->gc, jid, servernick);
 
+			/* Alias from our roster retrieval */
 			if(alias && (!b->alias || strcmp(b->alias, alias)))
-				purple_blist_alias_buddy(b, alias);
+				purple_serv_got_private_alias(js->gc, jid, alias);
 			g_free(l->data);
 			g2 = g_slist_delete_link(g2, l);
 		} else {