Changes in protocols/jabber/iq.c [f0cb961:40ef702]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/iq.c
rf0cb961 r40ef702 99 99 else if( strcmp( s, XMLNS_DISCOVER ) == 0 ) 100 100 { 101 const char *features[] = { XMLNS_VERSION, 102 XMLNS_TIME, 103 XMLNS_CHATSTATES, 104 XMLNS_MUC, 105 NULL }; 106 const char **f; 107 101 108 c = xt_new_node( "identity", NULL, NULL ); 102 109 xt_add_attr( c, "category", "client" ); … … 105 112 xt_add_child( reply, c ); 106 113 107 c = xt_new_node( "feature", NULL, NULL ); 108 xt_add_attr( c, "var", XMLNS_VERSION ); 109 xt_add_child( reply, c ); 110 111 c = xt_new_node( "feature", NULL, NULL ); 112 xt_add_attr( c, "var", XMLNS_TIME ); 113 xt_add_child( reply, c ); 114 115 c = xt_new_node( "feature", NULL, NULL ); 116 xt_add_attr( c, "var", XMLNS_CHATSTATES ); 117 xt_add_child( reply, c ); 118 119 /* Later this can be useful to announce things like 120 MUC support. */ 114 for( f = features; *f; f ++ ) 115 { 116 c = xt_new_node( "feature", NULL, NULL ); 117 xt_add_attr( c, "var", *f ); 118 xt_add_child( reply, c ); 119 } 121 120 } 122 121 else … … 373 372 group->text : NULL ); 374 373 375 imcb_rename_buddy( ic, jid, name ); 374 if( name ) 375 imcb_rename_buddy( ic, jid, name ); 376 376 } 377 377 else if( strcmp( sub, "remove" ) == 0 ) 378 378 { 379 /* Don't have any API call for this yet! So let's380 just try to handle this as well as we can. */381 379 jabber_buddy_remove_bare( ic, jid ); 382 imcb_buddy_status( ic, jid, 0, NULL, NULL ); 383 /* FIXME! */ 380 imcb_remove_buddy( ic, jid, NULL ); 384 381 } 385 382 }
Note: See TracChangeset
for help on using the changeset viewer.