Changeset 2c2df7d for protocols/jabber/iq.c
- Timestamp:
- 2007-11-28T21:07:30Z (16 years ago)
- Branches:
- master
- Children:
- 2ff2076, fa30fa5
- Parents:
- 221a273
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/iq.c
r221a273 r2c2df7d 104 104 XMLNS_CHATSTATES, 105 105 XMLNS_MUC, 106 XMLNS_SI, 107 XMLNS_BYTESTREAMS, 108 XMLNS_FILETRANSFER, 106 109 NULL }; 107 110 const char **f; … … 123 126 { 124 127 xt_free_node( reply ); 125 reply = jabber_make_error_packet( node, "feature-not-implemented", "cancel" );128 reply = jabber_make_error_packet( node, "feature-not-implemented", "cancel", NULL ); 126 129 pack = 0; 127 130 } … … 129 132 else if( strcmp( type, "set" ) == 0 ) 130 133 { 131 if( !( c = xt_find_node( node->children, "query" ) ) || 134 if( ( c = xt_find_node( node->children, "si" ) ) && 135 ( strcmp( xt_find_attr( c, "xmlns" ), XMLNS_SI ) == 0 ) ) 136 { 137 return jabber_si_handle_request( ic, node, c ); 138 } else if( !( c = xt_find_node( node->children, "query" ) ) || 132 139 !( s = xt_find_attr( c, "xmlns" ) ) ) 133 140 { 134 141 imcb_log( ic, "WARNING: Received incomplete IQ-%s packet", type ); 135 142 return XT_HANDLED; 136 } 137 143 } else if( strcmp( s, XMLNS_ROSTER ) == 0 ) 144 { 138 145 /* This is a roster push. XMPP servers send this when someone 139 146 was added to (or removed from) the buddy list. AFAIK they're 140 147 sent even if we added this buddy in our own session. */ 141 if( strcmp( s, XMLNS_ROSTER ) == 0 )142 {143 148 int bare_len = strlen( ic->acc->user ); 144 149 … … 157 162 158 163 xt_free_node( reply ); 159 reply = jabber_make_error_packet( node, "not-allowed", "cancel" );164 reply = jabber_make_error_packet( node, "not-allowed", "cancel", NULL ); 160 165 pack = 0; 161 166 } 162 } 163 else 167 } else if( strcmp( s, XMLNS_BYTESTREAMS ) == 0 ) 168 { 169 /* Bytestream Request (stage 2 of file transfer) */ 170 return jabber_bs_request( ic, node, c ); 171 } else 164 172 { 165 173 xt_free_node( reply ); 166 reply = jabber_make_error_packet( node, "feature-not-implemented", "cancel" );174 reply = jabber_make_error_packet( node, "feature-not-implemented", "cancel", NULL ); 167 175 pack = 0; 168 176 }
Note: See TracChangeset
for help on using the changeset viewer.