comparison libpurple/protocols/msn/msn.c @ 20120:557c4c67bd29

Use purple_connection_error_reason in prpl-msn.
author Will Thompson <will.thompson@collabora.co.uk>
date Wed, 19 Sep 2007 16:38:33 +0000
parents 2a4550082d66
children f3cfcbbac3d8
comparison
equal deleted inserted replaced
20119:ec3471ab96d6 20120:557c4c67bd29
720 gc = purple_account_get_connection(account); 720 gc = purple_account_get_connection(account);
721 721
722 if (!purple_ssl_is_supported()) 722 if (!purple_ssl_is_supported())
723 { 723 {
724 gc->wants_to_die = TRUE; 724 gc->wants_to_die = TRUE;
725 purple_connection_error(gc, 725 purple_connection_error_reason (gc, PURPLE_REASON_ENCRYPTION_ERROR,
726 _("SSL support is needed for MSN. Please install a supported " 726 _("SSL support is needed for MSN. Please install a supported "
727 "SSL library.")); 727 "SSL library."));
728 return; 728 return;
729 } 729 }
730 730
749 749
750 if (strcmp(username, purple_account_get_username(account))) 750 if (strcmp(username, purple_account_get_username(account)))
751 purple_account_set_username(account, username); 751 purple_account_set_username(account, username);
752 752
753 if (!msn_session_connect(session, host, port, http_method)) 753 if (!msn_session_connect(session, host, port, http_method))
754 purple_connection_error(gc, _("Failed to connect to server.")); 754 purple_connection_error_reason (gc, PURPLE_REASON_NETWORK_ERROR,
755 _("Failed to connect to server."));
755 } 756 }
756 757
757 static void 758 static void
758 msn_close(PurpleConnection *gc) 759 msn_close(PurpleConnection *gc)
759 { 760 {