Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/notification.c @ 23732:4ca41efb75a7
Some whitespace changes to make code from that previous commit look better.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Thu, 07 Aug 2008 05:08:44 +0000 |
parents | 59f8890ae8cf |
children | 38c76b5b846b |
comparison
equal
deleted
inserted
replaced
23731:59f8890ae8cf | 23732:4ca41efb75a7 |
---|---|
1302 | 1302 |
1303 session->passport_info.mail_timestamp = time(NULL); | 1303 session->passport_info.mail_timestamp = time(NULL); |
1304 tmp_timestamp = session->passport_info.mail_timestamp - session->passport_info.sl; | 1304 tmp_timestamp = session->passport_info.mail_timestamp - session->passport_info.sl; |
1305 | 1305 |
1306 buf = g_strdup_printf("%s%lu%s", | 1306 buf = g_strdup_printf("%s%lu%s", |
1307 session->passport_info.mspauth ? session->passport_info.mspauth : "BOGUS", | 1307 session->passport_info.mspauth ? session->passport_info.mspauth : "BOGUS", |
1308 tmp_timestamp, | 1308 tmp_timestamp, |
1309 purple_connection_get_password(gc)); | 1309 purple_connection_get_password(gc)); |
1310 | 1310 |
1311 cipher = purple_cipher_context_new_by_name("md5", NULL); | 1311 cipher = purple_cipher_context_new_by_name("md5", NULL); |
1312 purple_cipher_context_append(cipher, (const guchar *)buf, strlen(buf)); | 1312 purple_cipher_context_append(cipher, (const guchar *)buf, strlen(buf)); |
1313 purple_cipher_context_digest_to_str(cipher, sizeof(creds), creds, NULL); | 1313 purple_cipher_context_digest_to_str(cipher, sizeof(creds), creds, NULL); |
1314 purple_cipher_context_destroy(cipher); | 1314 purple_cipher_context_destroy(cipher); |
1315 | |
1316 g_free(buf); | 1315 g_free(buf); |
1317 | 1316 |
1318 g_free(session->passport_info.mail_url); | 1317 g_free(session->passport_info.mail_url); |
1319 session->passport_info.mail_url = g_strdup_printf("%s&auth=%s&creds=%s&sl=%ld&username=%s&mode=ttl&sid=%s&id=2&rru=%s&svc=mail&js=yes", | 1318 session->passport_info.mail_url = |
1320 url, | 1319 g_strdup_printf("%s&auth=%s&creds=%s&sl=%ld&username=%s&mode=ttl&sid=%s&id=2&rru=%s&svc=mail&js=yes", |
1321 session->passport_info.mspauth ? purple_url_encode(session->passport_info.mspauth) : "BOGUS", | 1320 url, |
1322 creds, | 1321 session->passport_info.mspauth ? purple_url_encode(session->passport_info.mspauth) : "BOGUS", |
1323 tmp_timestamp, | 1322 creds, |
1324 msn_user_get_passport(session->user), | 1323 tmp_timestamp, |
1325 session->passport_info.sid, | 1324 msn_user_get_passport(session->user), |
1326 rru); | 1325 session->passport_info.sid, |
1326 rru); | |
1327 | 1327 |
1328 /* The user wants to check his or her email */ | 1328 /* The user wants to check his or her email */ |
1329 if (cmd->trans && cmd->trans->data) | 1329 if (cmd->trans && cmd->trans->data) |
1330 purple_notify_uri(purple_account_get_connection(account), session->passport_info.mail_url); | 1330 purple_notify_uri(purple_account_get_connection(account), session->passport_info.mail_url); |
1331 } | 1331 } |