Changeset 64768d4 for protocols/msn/msn.c
- Timestamp:
- 2010-09-02T09:15:44Z (14 years ago)
- Branches:
- master
- Children:
- bae0617
- Parents:
- 02bb9db
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/msn/msn.c
r02bb9db r64768d4 154 154 if( strcmp( who, "raw" ) == 0 ) 155 155 { 156 msn_write( ic, message, strlen( message ) ); 157 msn_write( ic, "\r\n", 2 ); 156 msn_ns_write( ic, -1, "%s\r\n", message ); 158 157 } 159 158 else … … 193 192 static void msn_set_away( struct im_connection *ic, char *state, char *message ) 194 193 { 195 char buf[1024];196 194 char *uux; 197 195 struct msn_data *md = ic->proto_data; … … 202 200 md->away_state = msn_away_state_list + 1; 203 201 204 g_snprintf( buf, sizeof( buf ), "CHG %d %s\r\n", ++md->trId, md->away_state->code ); 205 if( !msn_write( ic, buf, strlen( buf ) ) ) 202 if( !msn_ns_write( ic, -1, "CHG %d %s\r\n", ++md->trId, md->away_state->code ) ) 206 203 return; 207 204 208 205 uux = g_markup_printf_escaped( "<Data><PSM>%s</PSM><CurrentMedia></CurrentMedia>" 209 206 "</Data>", message ? message : "" ); 210 g_snprintf( buf, sizeof( buf ), "UUX %d %zd\r\n%s", ++md->trId, strlen( uux ), uux ); 211 if( !msn_write( ic, buf, strlen( buf ) ) ) 212 return; 207 msn_ns_write( ic, -1, "UUX %d %zd\r\n%s", ++md->trId, strlen( uux ), uux ); 208 g_free( uux ); 213 209 } 214 210 … … 290 286 static void msn_keepalive( struct im_connection *ic ) 291 287 { 292 msn_ write( ic, "PNG\r\n", strlen( "PNG\r\n" ));288 msn_ns_write( ic, -1, "PNG\r\n" ); 293 289 } 294 290
Note: See TracChangeset
for help on using the changeset viewer.