diff libpurple/protocols/jabber/jabber.c @ 17580:7754d39d70c5

Added support for setting the avatar via XEP-0084. Receiving other people's avatar is up next.
author Andreas Monitzer <pidgin@monitzer.com>
date Sun, 17 Jun 2007 01:16:55 +0000
parents e49b259fc7dd
children 5ab3c6bb95b4
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.c	Fri Jun 15 21:09:22 2007 +0000
+++ b/libpurple/protocols/jabber/jabber.c	Sun Jun 17 01:16:55 2007 +0000
@@ -1965,5 +1965,9 @@
 void
 jabber_init_plugin(PurplePlugin *plugin)
 {
-		my_protocol = plugin;
+	my_protocol = plugin;
+	jabber_add_feature("avatarmeta", "http://www.xmpp.org/extensions/xep-0084.html#ns-metadata", jabber_pep_namespace_only_when_pep_enabled_cb);
+	jabber_add_feature("avatardata", "http://www.xmpp.org/extensions/xep-0084.html#ns-data", jabber_pep_namespace_only_when_pep_enabled_cb);
+	
+	jabber_pep_register_handler("avatar", "http://www.xmpp.org/extensions/xep-0084.html#ns-data", jabber_buddy_avatar_update_metadata);
 }