Mercurial > pidgin
comparison libpurple/protocols/mxit/login.c @ 31951:26f61ef1224b
Fixed properly now.
author | andrew.victor@mxit.com |
---|---|
date | Tue, 23 Aug 2011 08:33:52 +0000 |
parents | 9d7c8d6f4a66 |
children | e4ae42f9da68 |
comparison
equal
deleted
inserted
replaced
31950:9d7c8d6f4a66 | 31951:26f61ef1224b |
---|---|
55 /* currently the wapsite does not handle a '+' in front of the username (mxitid) so we just strip it */ | 55 /* currently the wapsite does not handle a '+' in front of the username (mxitid) so we just strip it */ |
56 { | 56 { |
57 const char* username = purple_account_get_username( account ); | 57 const char* username = purple_account_get_username( account ); |
58 | 58 |
59 if ( username[0] == '+' ) { | 59 if ( username[0] == '+' ) { |
60 char* fixed = g_strdup( &account->username[1] ); | 60 char* fixed = g_strdup( &username[1] ); |
61 purple_account_set_username( account, fixed ); | 61 purple_account_set_username( account, fixed ); |
62 g_free( fixed ); | 62 g_free( fixed ); |
63 } | 63 } |
64 } | 64 } |
65 | 65 |