Mercurial > pidgin.yaz
changeset 23358:1be3301fa2a3
Return the real JID (if available) from the xmpp get_cb_real_name function.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Fri, 13 Jun 2008 04:19:31 +0000 |
parents | d33fcdbd6ebc |
children | 398f84dd4041 |
files | libpurple/protocols/jabber/chat.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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); }