Mercurial > pidgin
comparison src/protocols/yahoo/yahoo.c @ 7107:9220c7490cd1
[gaim-migrate @ 7672]
This is a big one: normalize() -> gaim_normalize, linkify_text() ->
gaim_markup_linkify(), gaim_get_size_string() -> gaim_str_size_to_units(),
and moved clean_pid() to main.c.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 01 Oct 2003 06:17:28 +0000 |
parents | c8bf2da398e3 |
children | 6faeeecab0dc |
comparison
equal
deleted
inserted
replaced
7106:db6bd3e794d8 | 7107:9220c7490cd1 |
---|---|
846 | 846 |
847 static void yahoo_process_auth_old(GaimConnection *gc, const char *seed) | 847 static void yahoo_process_auth_old(GaimConnection *gc, const char *seed) |
848 { | 848 { |
849 struct yahoo_packet *pack; | 849 struct yahoo_packet *pack; |
850 GaimAccount *account = gaim_connection_get_account(gc); | 850 GaimAccount *account = gaim_connection_get_account(gc); |
851 const char *name = normalize(gaim_account_get_username(account)); | 851 const char *name = gaim_normalize(gaim_account_get_username(account)); |
852 const char *pass = gaim_account_get_password(account); | 852 const char *pass = gaim_account_get_password(account); |
853 struct yahoo_data *yd = gc->proto_data; | 853 struct yahoo_data *yd = gc->proto_data; |
854 | 854 |
855 /* So, Yahoo has stopped supporting its older clients in India, and undoubtedly | 855 /* So, Yahoo has stopped supporting its older clients in India, and undoubtedly |
856 * will soon do so in the rest of the world. | 856 * will soon do so in the rest of the world. |
964 | 964 |
965 static void yahoo_process_auth_new(GaimConnection *gc, const char *seed) | 965 static void yahoo_process_auth_new(GaimConnection *gc, const char *seed) |
966 { | 966 { |
967 struct yahoo_packet *pack = NULL; | 967 struct yahoo_packet *pack = NULL; |
968 GaimAccount *account = gaim_connection_get_account(gc); | 968 GaimAccount *account = gaim_connection_get_account(gc); |
969 const char *name = normalize(gaim_account_get_username(account)); | 969 const char *name = gaim_normalize(gaim_account_get_username(account)); |
970 const char *pass = gaim_account_get_password(account); | 970 const char *pass = gaim_account_get_password(account); |
971 struct yahoo_data *yd = gc->proto_data; | 971 struct yahoo_data *yd = gc->proto_data; |
972 | 972 |
973 md5_byte_t result[16]; | 973 md5_byte_t result[16]; |
974 md5_state_t ctx; | 974 md5_state_t ctx; |
1730 yd = gc->proto_data; | 1730 yd = gc->proto_data; |
1731 yd->fd = source; | 1731 yd->fd = source; |
1732 | 1732 |
1733 pkt = yahoo_packet_new(YAHOO_SERVICE_AUTH, YAHOO_STATUS_AVAILABLE, 0); | 1733 pkt = yahoo_packet_new(YAHOO_SERVICE_AUTH, YAHOO_STATUS_AVAILABLE, 0); |
1734 | 1734 |
1735 yahoo_packet_hash(pkt, 1, normalize(gaim_account_get_username(gaim_connection_get_account(gc)))); | 1735 yahoo_packet_hash(pkt, 1, gaim_normalize(gaim_account_get_username(gaim_connection_get_account(gc)))); |
1736 yahoo_send_packet(yd, pkt); | 1736 yahoo_send_packet(yd, pkt); |
1737 | 1737 |
1738 yahoo_packet_free(pkt); | 1738 yahoo_packet_free(pkt); |
1739 | 1739 |
1740 gc->inpa = gaim_input_add(yd->fd, GAIM_INPUT_READ, yahoo_pending, gc); | 1740 gc->inpa = gaim_input_add(yd->fd, GAIM_INPUT_READ, yahoo_pending, gc); |