cpw.darkrain42.xmpp.bosh: e75da667: Remove more #if 0'd code referencing ext...
paul at darkrain42.org
paul at darkrain42.org
Wed Mar 11 23:15:45 EDT 2009
-----------------------------------------------------------------
Revision: e75da66768159491d6adf832c4cef8d3f88ce2d0
Ancestor: c72e066a53d2d2ce08f45068a3370376d821aafb
Author: paul at darkrain42.org
Date: 2009-03-08T01:17:38
Branch: im.pidgin.cpw.darkrain42.xmpp.bosh
URL: http://d.pidgin.im/viewmtn/revision/info/e75da66768159491d6adf832c4cef8d3f88ce2d0
Modified files:
libpurple/protocols/jabber/presence.c
ChangeLog:
Remove more #if 0'd code referencing exts
-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/presence.c 08e5933d2f752801a59195587a3b214f6e644016
+++ libpurple/protocols/jabber/presence.c 8e33194e345b15aaecd2837eb00e17be59af0e21
@@ -273,39 +273,6 @@ xmlnode *jabber_presence_create_js(Jabbe
xmlnode_set_attrib(c, "hash", "sha-1");
xmlnode_set_attrib(c, "ver", jabber_caps_get_own_hash(js));
-#if 0
- if(js != NULL) {
- /* add the extensions */
- char extlist[1024];
- unsigned remaining = 1023; /* one less for the \0 */
- GList *feature;
-
- extlist[0] = '\0';
- for(feature = jabber_features; feature && remaining > 0; feature = feature->next) {
- JabberFeature *feat = (JabberFeature*)feature->data;
- unsigned featlen;
-
- if(feat->is_enabled != NULL && feat->is_enabled(js, feat->shortname, feat->namespace) == FALSE)
- continue; /* skip this feature */
-
- featlen = strlen(feat->shortname);
-
- /* cut off when we don't have any more space left in our buffer (too bad) */
- if(featlen > remaining)
- break;
-
- strncat(extlist,feat->shortname,remaining);
- remaining -= featlen;
- if(feature->next) { /* no space at the end */
- strncat(extlist," ",remaining);
- --remaining;
- }
- }
- /* did we add anything? */
- if(remaining < 1023)
- xmlnode_set_attrib(c, "ext", extlist);
- }
-#endif
return presence;
}
More information about the Commits
mailing list