# HG changeset patch # User Daniel Atallah # Date 1213330771 0 # Node ID 1be3301fa2a3ee7087eee0e95842789eadef0168 # Parent d33fcdbd6ebc58c0d0e590f2299c685d24dcd940 Return the real JID (if available) from the xmpp get_cb_real_name function. diff -r d33fcdbd6ebc -r 1be3301fa2a3 libpurple/protocols/jabber/chat.c --- a/libpurple/protocols/jabber/chat.c Fri Jun 13 01:08:31 2008 +0000 +++ b/libpurple/protocols/jabber/chat.c Fri Jun 13 04:19:31 2008 +0000 @@ -342,12 +342,18 @@ { JabberStream *js = gc->proto_data; JabberChat *chat; + JabberChatMember *jcm; chat = jabber_chat_find_by_id(js, id); if(!chat) return NULL; + jcm = g_hash_table_lookup(chat->members, who); + if (jcm != NULL && jcm->jid) + return g_strdup(jcm->jid); + + return g_strdup_printf("%s@%s/%s", chat->room, chat->server, who); }