diff src/protocols/msn/msn.c @ 7277:2972dad4438b

[gaim-migrate @ 7856] If SSL is not enabled, MSN will load, but error on connect. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Thu, 16 Oct 2003 00:53:02 +0000
parents 85fcaff1505d
children ff9127038a5a
line wrap: on
line diff
--- a/src/protocols/msn/msn.c	Wed Oct 15 22:50:58 2003 +0000
+++ b/src/protocols/msn/msn.c	Thu Oct 16 00:53:02 2003 +0000
@@ -448,11 +448,19 @@
 	const char *server;
 	int port;
 
+	gc = gaim_account_get_connection(account);
+
+	if (!gaim_ssl_is_supported())
+	{
+		gaim_connection_error(gc,
+			_("SSL support is needed for MSN. Please install it."));
+
+		return;
+	}
+
 	server = gaim_account_get_string(account, "server", MSN_SERVER);
 	port   = gaim_account_get_int(account,    "port",   MSN_PORT);
 
-	gc = gaim_account_get_connection(account);
-
 	session = msn_session_new(account, server, port);
 	session->prpl = my_protocol;
 
@@ -1607,8 +1615,6 @@
 {
 	GaimAccountOption *option;
 
-	info.dependencies = g_list_append(info.dependencies, "core-ssl");
-
 	option = gaim_account_option_string_new(_("Login server"), "server",
 											MSN_SERVER);
 	prpl_info.protocol_options = g_list_append(prpl_info.protocol_options,