Mercurial > pidgin.yaz
diff libpurple/protocols/jabber/usermood.c @ 29916:6bcf405d5c63
Allow a PRPL to have get_moods return NULL to disable mood setting.
Fixes not showing the "Set Mood" menu for XMPP accounts not supporting PEP
such as gmail.com
author | Marcus Lundblad <ml@update.uu.se> |
---|---|
date | Wed, 03 Mar 2010 22:08:27 +0000 |
parents | 1c6c2f5ecf53 |
children | 9f6a657af957 |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/usermood.c Sun Feb 28 22:30:02 2010 +0000 +++ b/libpurple/protocols/jabber/usermood.c Wed Mar 03 22:08:27 2010 +0000 @@ -119,10 +119,6 @@ {NULL, NULL, NULL} }; -static PurpleMood empty_moods[] = { - {NULL, NULL, NULL} -}; - static void jabber_mood_cb(JabberStream *js, const char *from, xmlnode *items) { /* it doesn't make sense to have more than one item here, so let's just pick the first one */ xmlnode *item = xmlnode_get_child(items, "item"); @@ -268,6 +264,6 @@ return moods; } else { purple_debug_info("jabber", "get_moods: account doesn't support PEP\n"); - return empty_moods; + return NULL; } } \ No newline at end of file