comparison 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
comparison
equal deleted inserted replaced
17579:af833a3204bb 17580:7754d39d70c5
1963 } 1963 }
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 } 1969 jabber_add_feature("avatarmeta", "http://www.xmpp.org/extensions/xep-0084.html#ns-metadata", jabber_pep_namespace_only_when_pep_enabled_cb);
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 }