Ignore:
Timestamp:
2010-08-15T18:46:10Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
80175a1
Parents:
9b01339
Message:

Making display name code a bit saner. Apparently PoS MSN is still suffering
from display_name amnesia a little bit though at least with Hotmail accounts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/msn_util.c

    r9b01339 re0e1546  
    598598        return NULL;
    599599}
     600
     601int msn_ns_set_display_name( struct im_connection *ic, const char *value )
     602{
     603        struct msn_data *md = ic->proto_data;
     604        char fn[strlen(value)*3+1];
     605        char buf[512];
     606       
     607        strcpy( fn, value );
     608        http_encode( fn );
     609        g_snprintf( buf, sizeof( buf ), "PRP %d MFN %s\r\n",
     610                    ++md->trId, fn );
     611       
     612        /* Note: We don't actually know if the server accepted the new name,
     613           and won't give proper feedback yet if it doesn't. */
     614        return msn_write( ic, buf, strlen( buf ) );
     615}
Note: See TracChangeset for help on using the changeset viewer.