diff libpurple/protocols/jabber/pep.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 7754d39d70c5
line wrap: on
line diff
--- a/libpurple/protocols/jabber/pep.c	Wed Jun 13 16:03:11 2007 +0000
+++ b/libpurple/protocols/jabber/pep.c	Fri Jun 15 07:13:41 2007 +0000
@@ -41,7 +41,7 @@
 
 void jabber_pep_register_handler(const char *shortname, const char *xmlns, JabberPEPHandler handlerfunc) {
 	gchar *notifyns = g_strdup_printf("%s+notify", xmlns);
-	jabber_add_feature(shortname, notifyns);
+	jabber_add_feature(shortname, notifyns, NULL); /* receiving PEPs is always supported */
 	g_free(notifyns);
 	g_hash_table_replace(pep_handlers, g_strdup(xmlns), handlerfunc);
 }