# HG changeset patch # User Andreas Monitzer # Date 1186606902 0 # Node ID 5d0141588299fa51632672b4a2ee398d3842e70a # Parent ba3b22cd280b86807acb56345e27dd225b15521b Updated attention namespace to adhere to my new XEP-0224: Attention diff -r ba3b22cd280b -r 5d0141588299 libpurple/protocols/jabber/jabber.c --- a/libpurple/protocols/jabber/jabber.c Tue Jul 31 15:01:14 2007 +0000 +++ b/libpurple/protocols/jabber/jabber.c Wed Aug 08 21:01:42 2007 +0000 @@ -2220,7 +2220,7 @@ return PURPLE_CMD_RET_FAILED; } for(iter = jbr->caps->features; iter; iter = g_list_next(iter)) { - if(!strcmp(iter->data, "http://pidgin.im/libpurple/xmpp/attention")) { + if(!strcmp(iter->data, "http://www.xmpp.org/extensions/xep-0224.html#ns")) { msg = xmlnode_new("message"); to = g_strdup_printf("%s/%s", args[0], jbr->name); xmlnode_set_attrib(msg,"to",to); @@ -2230,7 +2230,7 @@ xmlnode_set_attrib(msg,"type","headline"); buzz = xmlnode_new_child(msg,"attention"); - xmlnode_set_namespace(buzz,"http://pidgin.im/libpurple/xmpp/attention"); + xmlnode_set_namespace(buzz,"http://www.xmpp.org/extensions/xep-0224.html#ns"); jabber_send(js,msg); xmlnode_free(msg); diff -r ba3b22cd280b -r 5d0141588299 libpurple/protocols/jabber/libxmpp.c --- a/libpurple/protocols/jabber/libxmpp.c Tue Jul 31 15:01:14 2007 +0000 +++ b/libpurple/protocols/jabber/libxmpp.c Wed Aug 08 21:01:42 2007 +0000 @@ -248,7 +248,7 @@ jabber_add_feature("avatarmeta", AVATARNAMESPACEMETA, jabber_pep_namespace_only_when_pep_enabled_cb); jabber_add_feature("avatardata", AVATARNAMESPACEDATA, jabber_pep_namespace_only_when_pep_enabled_cb); - jabber_add_feature("buzz", "http://pidgin.im/libpurple/xmpp/attention", jabber_buzz_isenabled); + jabber_add_feature("buzz", "http://www.xmpp.org/extensions/xep-0224.html#ns", jabber_buzz_isenabled); jabber_pep_register_handler("avatar", AVATARNAMESPACEMETA, jabber_buddy_avatar_update_metadata); } diff -r ba3b22cd280b -r 5d0141588299 libpurple/protocols/jabber/message.c --- a/libpurple/protocols/jabber/message.c Tue Jul 31 15:01:14 2007 +0000 +++ b/libpurple/protocols/jabber/message.c Wed Aug 08 21:01:42 2007 +0000 @@ -393,7 +393,7 @@ jm->type = JABBER_MESSAGE_EVENT; for(items = xmlnode_get_child(child,"items"); items; items = items->next) jm->eventitems = g_list_append(jm->eventitems, items); - } else if(!strcmp(child->name, "attention") && !strcmp(xmlns,"http://pidgin.im/libpurple/xmpp/attention")) { + } else if(!strcmp(child->name, "attention") && !strcmp(xmlns,"http://www.xmpp.org/extensions/xep-0224.html#ns")) { jm->hasBuzz = TRUE; } else if(!strcmp(child->name, "error")) { const char *code = xmlnode_get_attrib(child, "code");