Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/buddy.c @ 23360:da78db9f188f
Pass the "real" chat username to the pidgin_retrieve_user_info function.
Get rid of the get_cb_info implementation in the xmpp prpl as it isn't needed.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Fri, 13 Jun 2008 04:57:45 +0000 |
parents | b4ed2512be3b |
children | 3c3032be12de 3da0957e7821 |
comparison
equal
deleted
inserted
replaced
23359:398f84dd4041 | 23360:da78db9f188f |
---|---|
1791 jabber_buddy_get_info_for_jid(js, bare_jid); | 1791 jabber_buddy_get_info_for_jid(js, bare_jid); |
1792 g_free(bare_jid); | 1792 g_free(bare_jid); |
1793 } | 1793 } |
1794 } | 1794 } |
1795 | 1795 |
1796 void jabber_buddy_get_info_chat(PurpleConnection *gc, int id, | |
1797 const char *resource) | |
1798 { | |
1799 JabberStream *js = gc->proto_data; | |
1800 JabberChat *chat = jabber_chat_find_by_id(js, id); | |
1801 char *full_jid; | |
1802 | |
1803 if(!chat) | |
1804 return; | |
1805 | |
1806 full_jid = g_strdup_printf("%s@%s/%s", chat->room, chat->server, resource); | |
1807 jabber_buddy_get_info_for_jid(js, full_jid); | |
1808 g_free(full_jid); | |
1809 } | |
1810 | |
1811 | |
1812 static void jabber_buddy_set_invisibility(JabberStream *js, const char *who, | 1796 static void jabber_buddy_set_invisibility(JabberStream *js, const char *who, |
1813 gboolean invisible) | 1797 gboolean invisible) |
1814 { | 1798 { |
1815 PurplePresence *gpresence; | 1799 PurplePresence *gpresence; |
1816 PurpleAccount *account; | 1800 PurpleAccount *account; |