Mercurial > pidgin.yaz
comparison libpurple/protocols/mxit/protocol.c @ 32707:f75041cb3fec
Convert libpurple and protocol prpl's to use the purple_account_* accessor functions.
author | andrew.victor@mxit.com |
---|---|
date | Sat, 01 Oct 2011 18:21:43 +0000 |
parents | 904686722499 |
children | d8c652ea476a |
comparison
equal
deleted
inserted
replaced
32706:6e27091869eb | 32707:f75041cb3fec |
---|---|
456 packet->data = g_malloc0( datalen ); | 456 packet->data = g_malloc0( datalen ); |
457 packet->cmd = cmd; | 457 packet->cmd = cmd; |
458 packet->headerlen = 0; | 458 packet->headerlen = 0; |
459 | 459 |
460 /* create generic packet header */ | 460 /* create generic packet header */ |
461 hlen = snprintf( header, sizeof( header ), "id=%s%c", session->acc->username, CP_REC_TERM ); /* client msisdn */ | 461 hlen = snprintf( header, sizeof( header ), "id=%s%c", purple_account_get_username( session->acc), CP_REC_TERM ); /* client msisdn */ |
462 | 462 |
463 if ( session->http ) { | 463 if ( session->http ) { |
464 /* http connection only */ | 464 /* http connection only */ |
465 hlen += sprintf( header + hlen, "s=" ); | 465 hlen += sprintf( header + hlen, "s=" ); |
466 if ( session->http_sesid > 0 ) { | 466 if ( session->http_sesid > 0 ) { |