Changeset e0e1546 for protocols/msn/msn.c
- Timestamp:
- 2010-08-15T18:46:10Z (14 years ago)
- Branches:
- master
- Children:
- 80175a1
- Parents:
- 9b01339
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/msn/msn.c
r9b01339 re0e1546 337 337 account_t *acc = set->data; 338 338 struct im_connection *ic = acc->ic; 339 struct msn_data *md = ic->proto_data;340 char buf[512];341 char *fn;342 339 343 340 if( strlen( value ) > 129 ) … … 348 345 349 346 msn_soap_addressbook_set_display_name( ic, value ); 350 351 fn = g_malloc( strlen( value ) * 3 + 1 ); 352 strcpy( fn, value ); 353 http_encode( fn ); 354 g_snprintf( buf, sizeof( buf ), "PRP %d MFN %s\r\n", 355 ++md->trId, fn ); 356 g_free( fn ); 357 358 /* Note: We don't actually know if the server accepted the new name, 359 and won't give proper feedback yet if it doesn't. */ 360 return msn_write( ic, buf, strlen( buf ) ) ? value : NULL; 347 return msn_ns_set_display_name( ic, value ) ? value : NULL; 361 348 } 362 349
Note: See TracChangeset
for help on using the changeset viewer.