Mercurial > pidgin.yaz
diff libpurple/protocols/jabber/presence.c @ 25575:26eabe8e739b
Removing short-names for features and calculating own caps hash.
author | Tobias Markmann <tfar@soc.pidgin.im> |
---|---|
date | Mon, 16 Jun 2008 13:52:45 +0000 |
parents | 5793bcea224c |
children | 2a6a37c7970b |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/presence.c Wed Jun 11 15:36:42 2008 +0000 +++ b/libpurple/protocols/jabber/presence.c Mon Jun 16 13:52:45 2008 +0000 @@ -264,8 +264,10 @@ c = xmlnode_new_child(presence, "c"); xmlnode_set_namespace(c, "http://jabber.org/protocol/caps"); xmlnode_set_attrib(c, "node", CAPS0115_NODE); - xmlnode_set_attrib(c, "ver", VERSION); - + xmlnode_set_attrib(c, "hash", "sha-1"); + xmlnode_set_attrib(c, "ver", jabber_caps_get_hash()); + +#if 0 if(js != NULL) { /* add the extensions */ char extlist[1024]; @@ -277,7 +279,7 @@ JabberFeature *feat = (JabberFeature*)feature->data; unsigned featlen; - if(feat->is_enabled != NULL && feat->is_enabled(js, feat->shortname, feat->namespace) == FALSE) + if(feat->is_enabled != NULL && feat->is_enabled(js, feat->namespace) == FALSE) continue; /* skip this feature */ featlen = strlen(feat->shortname); @@ -297,7 +299,7 @@ if(remaining < 1023) xmlnode_set_attrib(c, "ext", extlist); } - +#endif return presence; }