Mercurial > pidgin
diff libpurple/protocols/jabber/usermood.c @ 17849:e49b259fc7dd
PEP publishing features are now only announced in disco#info when PEP is supported by the server.
author | Andreas Monitzer <pidgin@monitzer.com> |
---|---|
date | Fri, 15 Jun 2007 07:13:41 +0000 |
parents | 5fc8a8a25008 |
children | 2e41e74dabd0 |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/usermood.c Wed Jun 13 16:03:11 2007 +0000 +++ b/libpurple/protocols/jabber/usermood.c Fri Jun 15 07:13:41 2007 +0000 @@ -133,8 +133,13 @@ g_free(moodtext); } +static gboolean is_mood_supported(JabberStream *js, const gchar *shortname, const gchar *namespace) { + purple_debug_info("jabber", "is_mood_supported: have pep: %s\n", js->pep?"YES":"NO"); + return js->pep; +} + void jabber_mood_init(void) { - jabber_add_feature("mood", "http://jabber.org/protocol/mood"); + jabber_add_feature("mood", "http://jabber.org/protocol/mood", is_mood_supported); jabber_pep_register_handler("moodn", "http://jabber.org/protocol/mood", jabber_mood_cb); }