# HG changeset patch # User Marcus Lundblad # Date 1267742132 0 # Node ID 9f6a657af95747426426e0fc783cb1255909991e # Parent 3e5bb4e2334c07ec58922cfa8549ff24ee98ead8 Allow showing moods for buddies when signed on using an XMPP account not supporting PEP. Also remove the mentioning of return NULL for _get_moods to indicate not supporting setting moods on an account, since there is now a connection flag for it, and an account can receive moods even though it can't set them (in the XMPP case). Also fixes a crash in buddy tooltip. diff -r 3e5bb4e2334c -r 9f6a657af957 libpurple/protocols/jabber/usermood.c --- a/libpurple/protocols/jabber/usermood.c Thu Mar 04 22:14:03 2010 +0000 +++ b/libpurple/protocols/jabber/usermood.c Thu Mar 04 22:35:32 2010 +0000 @@ -256,14 +256,5 @@ PurpleMood *jabber_get_moods(PurpleAccount *account) { - PurpleConnection *gc = purple_account_get_connection(account); - JabberStream *js = (JabberStream *) gc->proto_data; - - if (js->pep) { - purple_debug_info("jabber", "get_moods: account supports PEP\n"); - return moods; - } else { - purple_debug_info("jabber", "get_moods: account doesn't support PEP\n"); - return NULL; - } + return moods; } \ No newline at end of file diff -r 3e5bb4e2334c -r 9f6a657af957 libpurple/prpl.h --- a/libpurple/prpl.h Thu Mar 04 22:14:03 2010 +0000 +++ b/libpurple/prpl.h Thu Mar 04 22:35:32 2010 +0000 @@ -572,8 +572,7 @@ /** * Returns an array of "PurpleMood"s, with the last one having - * "mood" set to @c NULL, or NULL if the account does not support setting - * a mood. + * "mood" set to @c NULL. */ PurpleMood *(*get_moods)(PurpleAccount *account); };