comparison libpurple/protocols/jabber/jabber.c @ 17581:5ab3c6bb95b4

Implemented receiving other people's avatars via XEP-0084. Note that this code now includes a workaround for a non-spec incompatibility for the current ejabberd PEP implementation, and doesn't use the correct namespace due to Psi using the wrong one (outdated?). Works fine though, and the vcard-based approach is retained.
author Andreas Monitzer <pidgin@monitzer.com>
date Sun, 17 Jun 2007 03:51:19 +0000
parents 7754d39d70c5
children 3e437e86bd6e
comparison
equal deleted inserted replaced
17580:7754d39d70c5 17581:5ab3c6bb95b4
1964 1964
1965 void 1965 void
1966 jabber_init_plugin(PurplePlugin *plugin) 1966 jabber_init_plugin(PurplePlugin *plugin)
1967 { 1967 {
1968 my_protocol = plugin; 1968 my_protocol = plugin;
1969 jabber_add_feature("avatarmeta", "http://www.xmpp.org/extensions/xep-0084.html#ns-metadata", jabber_pep_namespace_only_when_pep_enabled_cb); 1969 }
1970 jabber_add_feature("avatardata", "http://www.xmpp.org/extensions/xep-0084.html#ns-data", jabber_pep_namespace_only_when_pep_enabled_cb);
1971
1972 jabber_pep_register_handler("avatar", "http://www.xmpp.org/extensions/xep-0084.html#ns-data", jabber_buddy_avatar_update_metadata);
1973 }