changeset 18922:5d0141588299

Updated attention namespace to adhere to my new XEP-0224: Attention
author Andreas Monitzer <pidgin@monitzer.com>
date Wed, 08 Aug 2007 21:01:42 +0000
parents ba3b22cd280b
children 708a8b97ba87 3afcfbed2ced f821d4bffb0a
files libpurple/protocols/jabber/jabber.c libpurple/protocols/jabber/libxmpp.c libpurple/protocols/jabber/message.c
diffstat 3 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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);
--- 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);
 }
--- 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");