comparison libpurple/protocols/jabber/usermood.c @ 17576: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
comparison
equal deleted inserted replaced
17575:5fc8a8a25008 17576:e49b259fc7dd
131 } 131 }
132 if (moodtext) 132 if (moodtext)
133 g_free(moodtext); 133 g_free(moodtext);
134 } 134 }
135 135
136 static gboolean is_mood_supported(JabberStream *js, const gchar *shortname, const gchar *namespace) {
137 purple_debug_info("jabber", "is_mood_supported: have pep: %s\n", js->pep?"YES":"NO");
138 return js->pep;
139 }
140
136 void jabber_mood_init(void) { 141 void jabber_mood_init(void) {
137 jabber_add_feature("mood", "http://jabber.org/protocol/mood"); 142 jabber_add_feature("mood", "http://jabber.org/protocol/mood", is_mood_supported);
138 jabber_pep_register_handler("moodn", "http://jabber.org/protocol/mood", jabber_mood_cb); 143 jabber_pep_register_handler("moodn", "http://jabber.org/protocol/mood", jabber_mood_cb);
139 } 144 }
140 145
141 static void do_mood_set_mood(PurplePluginAction *action) { 146 static void do_mood_set_mood(PurplePluginAction *action) {
142 147