Mercurial > pidgin
comparison src/oscar.c @ 2066:05df89293018
[gaim-migrate @ 2076]
the crowd goes wild.
don't try this yet; i haven't tested it.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 13 Jul 2001 16:49:22 +0000 |
parents | 1f51e772a05c |
children | a23832262ca2 |
comparison
equal
deleted
inserted
replaced
2065:391440022697 | 2066:05df89293018 |
---|---|
615 | 615 |
616 debug_printf("inside auth_resp (Screen name: %s)\n", sn); | 616 debug_printf("inside auth_resp (Screen name: %s)\n", sn); |
617 | 617 |
618 if (errorcode || !bosip || !cookie) { | 618 if (errorcode || !bosip || !cookie) { |
619 switch (errorcode) { | 619 switch (errorcode) { |
620 case 0x05: | |
621 /* Incorrect nick/password */ | |
622 hide_login_progress(gc, _("Incorrect nickname or password.")); | |
623 plugin_event(event_error, (void *)980, 0, 0, 0); | |
624 break; | |
625 case 0x11: | |
626 /* Suspended account */ | |
627 hide_login_progress(gc, _("Your account is currently suspended.")); | |
628 break; | |
620 case 0x18: | 629 case 0x18: |
621 /* connecting too frequently */ | 630 /* connecting too frequently */ |
622 hide_login_progress(gc, _("You have been connecting and disconnecting too frequently. Wait ten minutes and try again. If you continue to try, you will need to wait even longer.")); | 631 hide_login_progress(gc, _("You have been connecting and disconnecting too frequently. Wait ten minutes and try again. If you continue to try, you will need to wait even longer.")); |
623 plugin_event(event_error, (void *)983, 0, 0, 0); | 632 plugin_event(event_error, (void *)983, 0, 0, 0); |
624 break; | |
625 case 0x05: | |
626 /* Incorrect nick/password */ | |
627 hide_login_progress(gc, _("Incorrect nickname or password.")); | |
628 plugin_event(event_error, (void *)980, 0, 0, 0); | |
629 break; | 633 break; |
630 case 0x1c: | 634 case 0x1c: |
631 /* client too old */ | 635 /* client too old */ |
632 hide_login_progress(gc, _("The client version you are using is too old. Please upgrade at " WEBSITE)); | 636 hide_login_progress(gc, _("The client version you are using is too old. Please upgrade at " WEBSITE)); |
633 plugin_event(event_error, (void *)989, 0, 0, 0); | 637 plugin_event(event_error, (void *)989, 0, 0, 0); |
638 } | 642 } |
639 debug_printf("Login Error Code 0x%04x\n", errorcode); | 643 debug_printf("Login Error Code 0x%04x\n", errorcode); |
640 debug_printf("Error URL: %s\n", errurl); | 644 debug_printf("Error URL: %s\n", errurl); |
641 aim_conn_kill(sess, &command->conn); | 645 aim_conn_kill(sess, &command->conn); |
642 signoff(gc); | 646 signoff(gc); |
643 return -1; | 647 return 1; |
644 } | 648 } |
645 | 649 |
646 | 650 |
647 debug_printf("Reg status: %2d\n", regstatus); | 651 debug_printf("Reg status: %2d\n", regstatus); |
648 if (email) { | 652 if (email) { |
662 | 666 |
663 bosconn = aim_newconn(sess, AIM_CONN_TYPE_BOS, NULL); | 667 bosconn = aim_newconn(sess, AIM_CONN_TYPE_BOS, NULL); |
664 if (bosconn == NULL) { | 668 if (bosconn == NULL) { |
665 hide_login_progress(gc, _("Internal Error")); | 669 hide_login_progress(gc, _("Internal Error")); |
666 signoff(gc); | 670 signoff(gc); |
667 return -1; | 671 return 1; |
668 } | 672 } |
669 | 673 |
670 aim_conn_addhandler(sess, bosconn, 0x0009, 0x0003, gaim_bosrights, 0); | 674 aim_conn_addhandler(sess, bosconn, 0x0009, 0x0003, gaim_bosrights, 0); |
671 aim_conn_addhandler(sess, bosconn, 0x0001, 0x0007, gaim_rateresp, 0); /* rate info */ | 675 aim_conn_addhandler(sess, bosconn, 0x0001, 0x0007, gaim_rateresp, 0); /* rate info */ |
672 aim_conn_addhandler(sess, bosconn, AIM_CB_FAM_ACK, AIM_CB_ACK_ACK, NULL, 0); | 676 aim_conn_addhandler(sess, bosconn, AIM_CB_FAM_ACK, AIM_CB_ACK_ACK, NULL, 0); |
705 bosconn->fd = proxy_connect(host, port, oscar_bos_connect, gc); | 709 bosconn->fd = proxy_connect(host, port, oscar_bos_connect, gc); |
706 g_free(host); | 710 g_free(host); |
707 if (bosconn->fd < 0) { | 711 if (bosconn->fd < 0) { |
708 hide_login_progress(gc, _("Could Not Connect")); | 712 hide_login_progress(gc, _("Could Not Connect")); |
709 signoff(gc); | 713 signoff(gc); |
710 return -1; | 714 return 1; |
711 } | 715 } |
712 aim_auth_sendcookie(sess, bosconn, cookie); | 716 aim_auth_sendcookie(sess, bosconn, cookie); |
713 gdk_input_remove(gc->inpa); | 717 gdk_input_remove(gc->inpa); |
714 return 1; | 718 return 1; |
715 } | 719 } |