Changeset aef4828 for protocols/yahoo
- Timestamp:
- 2007-04-06T05:20:31Z (18 years ago)
- Branches:
- master
- Children:
- 552e641
- Parents:
- 0da65d5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/yahoo/yahoo.c
r0da65d5 raef4828 123 123 static void byahoo_login( account_t *acc ) 124 124 { 125 struct im_connection *ic = new_gaim_conn( acc );125 struct im_connection *ic = imc_new( acc ); 126 126 struct byahoo_data *yd = ic->proto_data = g_new0( struct byahoo_data, 1 ); 127 127 … … 129 129 yd->current_status = YAHOO_STATUS_AVAILABLE; 130 130 131 set_login_progress( ic, 1, "Connecting" );131 imc_log( ic, "Connecting" ); 132 132 yd->y2_id = yahoo_init( acc->user, acc->pass ); 133 133 yahoo_login( yd->y2_id, yd->current_status ); … … 163 163 { 164 164 /* Just make an URL and let the user fetch the info */ 165 serv_got_crap(ic, "%s\n%s: %s%s", _("User Info"),165 imc_log(ic, "%s\n%s: %s%s", _("User Info"), 166 166 _("For now, fetch yourself"), yahoo_get_profile_url(), 167 167 who); … … 511 511 if( succ == YAHOO_LOGIN_OK ) 512 512 { 513 account_online( ic );513 imc_connected( ic ); 514 514 515 515 yd->logged_in = TRUE; … … 550 550 551 551 if( yd->logged_in ) 552 hide_login_progress_error( ic, s );552 imc_error( ic, s ); 553 553 else 554 hide_login_progress( ic, s );554 imc_error( ic, s ); 555 555 556 556 g_free( s ); 557 557 558 signoff( ic );558 imc_logout( ic ); 559 559 } 560 560 } … … 619 619 struct im_connection *ic = byahoo_get_ic_by_id( id ); 620 620 621 serv_got_crap( ic, "Got a file transfer (file = %s) from %s. Ignoring for now due to lack of support.", fname, who );621 imc_log( ic, "Got a file transfer (file = %s) from %s. Ignoring for now due to lack of support.", fname, who ); 622 622 } 623 623 … … 639 639 struct im_connection *ic = byahoo_get_ic_by_id( id ); 640 640 641 serv_got_crap( ic, "Yahoo! system message: %s", msg );641 imc_log( ic, "Yahoo! system message: %s", msg ); 642 642 } 643 643 … … 646 646 struct im_connection *ic = byahoo_get_ic_by_id( id ); 647 647 648 serv_got_crap( ic, "Got a webcam invitation from %s. IRC+webcams is a no-no though...", from );648 imc_log( ic, "Got a webcam invitation from %s. IRC+webcams is a no-no though...", from ); 649 649 } 650 650 … … 653 653 struct im_connection *ic = byahoo_get_ic_by_id( id ); 654 654 655 imc_error( ic, "%s", err ); 656 655 657 if( fatal ) 656 { 657 hide_login_progress_error( ic, err ); 658 signoff( ic ); 659 } 660 else 661 { 662 do_error_dialog( ic, err, "Yahoo! error" ); 663 } 658 imc_logout( ic ); 664 659 } 665 660 … … 829 824 struct im_connection *ic = byahoo_get_ic_by_id( id ); 830 825 831 serv_got_crap( ic, "Invite to chatroom %s rejected by %s: %s", room, who, msg );826 imc_log( ic, "Invite to chatroom %s rejected by %s: %s", room, who, msg ); 832 827 } 833 828 … … 912 907 913 908 if( from && subj ) 914 serv_got_crap( ic, "Received e-mail message from %s with subject `%s'", from, subj );909 imc_log( ic, "Received e-mail message from %s with subject `%s'", from, subj ); 915 910 else if( cnt > 0 ) 916 serv_got_crap( ic, "Received %d new e-mails", cnt );911 imc_log( ic, "Received %d new e-mails", cnt ); 917 912 } 918 913
Note: See TracChangeset
for help on using the changeset viewer.