Mercurial > pidgin
comparison libpurple/protocols/jabber/presence.c @ 25989:592b88eae0d5
Remove more #if 0'd code referencing exts
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sun, 08 Mar 2009 01:17:38 +0000 |
parents | c4fd9222dda1 |
children | 882748e27f9d |
comparison
equal
deleted
inserted
replaced
25987:035ba9355361 | 25989:592b88eae0d5 |
---|---|
271 xmlnode_set_namespace(c, "http://jabber.org/protocol/caps"); | 271 xmlnode_set_namespace(c, "http://jabber.org/protocol/caps"); |
272 xmlnode_set_attrib(c, "node", CAPS0115_NODE); | 272 xmlnode_set_attrib(c, "node", CAPS0115_NODE); |
273 xmlnode_set_attrib(c, "hash", "sha-1"); | 273 xmlnode_set_attrib(c, "hash", "sha-1"); |
274 xmlnode_set_attrib(c, "ver", jabber_caps_get_own_hash(js)); | 274 xmlnode_set_attrib(c, "ver", jabber_caps_get_own_hash(js)); |
275 | 275 |
276 #if 0 | |
277 if(js != NULL) { | |
278 /* add the extensions */ | |
279 char extlist[1024]; | |
280 unsigned remaining = 1023; /* one less for the \0 */ | |
281 GList *feature; | |
282 | |
283 extlist[0] = '\0'; | |
284 for(feature = jabber_features; feature && remaining > 0; feature = feature->next) { | |
285 JabberFeature *feat = (JabberFeature*)feature->data; | |
286 unsigned featlen; | |
287 | |
288 if(feat->is_enabled != NULL && feat->is_enabled(js, feat->shortname, feat->namespace) == FALSE) | |
289 continue; /* skip this feature */ | |
290 | |
291 featlen = strlen(feat->shortname); | |
292 | |
293 /* cut off when we don't have any more space left in our buffer (too bad) */ | |
294 if(featlen > remaining) | |
295 break; | |
296 | |
297 strncat(extlist,feat->shortname,remaining); | |
298 remaining -= featlen; | |
299 if(feature->next) { /* no space at the end */ | |
300 strncat(extlist," ",remaining); | |
301 --remaining; | |
302 } | |
303 } | |
304 /* did we add anything? */ | |
305 if(remaining < 1023) | |
306 xmlnode_set_attrib(c, "ext", extlist); | |
307 } | |
308 #endif | |
309 return presence; | 276 return presence; |
310 } | 277 } |
311 | 278 |
312 struct _jabber_add_permit { | 279 struct _jabber_add_permit { |
313 PurpleConnection *gc; | 280 PurpleConnection *gc; |