Mercurial > pidgin
comparison libpurple/protocols/mxit/protocol.c @ 30003:08cae68b25dc
Save the user's MXitId received in the login-response packet to the Session.
Display the MXitId (read-only) in the profile information.
author | andrew.victor@mxit.com |
---|---|
date | Thu, 20 May 2010 11:21:30 +0000 |
parents | 30d0d4756fac |
children | cbae3d450db8 |
comparison
equal
deleted
inserted
replaced
30002:30d0d4756fac | 30003:08cae68b25dc |
---|---|
1299 g_strlcpy( session->http_server, records[1]->fields[3]->data, sizeof( session->http_server ) ); | 1299 g_strlcpy( session->http_server, records[1]->fields[3]->data, sizeof( session->http_server ) ); |
1300 | 1300 |
1301 /* save the session id */ | 1301 /* save the session id */ |
1302 session->http_sesid = atoi( records[0]->fields[0]->data ); | 1302 session->http_sesid = atoi( records[0]->fields[0]->data ); |
1303 } | 1303 } |
1304 | |
1305 /* extract MXitId (from protocol 5.9) */ | |
1306 if ( records[1]->fcount >= 9 ) | |
1307 session->mxitId = g_strdup( records[1]->fields[8]->data ); | |
1304 | 1308 |
1305 /* display the current splash-screen */ | 1309 /* display the current splash-screen */ |
1306 if ( splash_popup_enabled( session ) ) | 1310 if ( splash_popup_enabled( session ) ) |
1307 splash_display( session ); | 1311 splash_display( session ); |
1308 | 1312 |
2481 | 2485 |
2482 /* free custom emoticons */ | 2486 /* free custom emoticons */ |
2483 mxit_free_emoticon_cache( session ); | 2487 mxit_free_emoticon_cache( session ); |
2484 | 2488 |
2485 /* free allocated memory */ | 2489 /* free allocated memory */ |
2490 if ( session->mxitId ) | |
2491 g_free( session->mxitId ); | |
2486 g_free( session->encpwd ); | 2492 g_free( session->encpwd ); |
2487 session->encpwd = NULL; | 2493 session->encpwd = NULL; |
2488 | 2494 |
2489 /* flush all the commands still in the queue */ | 2495 /* flush all the commands still in the queue */ |
2490 flush_queue( session ); | 2496 flush_queue( session ); |