Mercurial > pidgin
diff src/protocols/msn/msn.c @ 7288:ff9127038a5a
[gaim-migrate @ 7869]
It doesn't completely work yet, but this is the beginnings of the MSN HTTP
port 80 connect method. I don't have it set so it can be enabled, so it's
harmless to commit this now, but I want a second set of eyes, and I also
want to do other MSN work without dealing with hand-merging patches.
committer: Tailor Script <tailor@pidgin.im>
| author | Christian Hammond <chipx86@chipx86.com> |
|---|---|
| date | Fri, 17 Oct 2003 14:57:59 +0000 |
| parents | 2972dad4438b |
| children | ab828b8c3f22 |
line wrap: on
line diff
--- a/src/protocols/msn/msn.c Fri Oct 17 05:58:16 2003 +0000 +++ b/src/protocols/msn/msn.c Fri Oct 17 14:57:59 2003 +0000 @@ -446,6 +446,7 @@ MsnSession *session; const char *username; const char *server; + gboolean http_method = FALSE; int port; gc = gaim_account_get_connection(account); @@ -458,10 +459,21 @@ return; } - server = gaim_account_get_string(account, "server", MSN_SERVER); - port = gaim_account_get_int(account, "port", MSN_PORT); + if (gaim_account_get_bool(account, "http_method", FALSE)) + { + http_method = TRUE; + + server = "gateway.messenger.hotmail.com"; + port = 80; + } + else + { + server = gaim_account_get_string(account, "server", MSN_SERVER); + port = gaim_account_get_int(account, "port", MSN_PORT); + } session = msn_session_new(account, server, port); + session->http_method = http_method; session->prpl = my_protocol; gc->proto_data = session; @@ -1624,6 +1636,13 @@ prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); +#if 0 + option = gaim_account_option_bool_new(_("Use HTTP Method"), "http_method", + FALSE); + prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, + option); +#endif + my_protocol = plugin; gaim_prefs_add_none("/plugins/prpl/msn");
