Changeset a6b00fc


Ignore:
Timestamp:
2015-02-28T23:17:33Z (10 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
ce70e88
Parents:
a880e34
git-author:
dequis <dx@…> (28-02-15 23:15:56)
git-committer:
dequis <dx@…> (28-02-15 23:17:33)
Message:

Disable msn by default :(

I didn't want to do the next release with a broken msn, but...
gotta be realistic.

Also featuring shameless plug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/msn.c

    ra880e34 ra6b00fc  
    4141        s->flags |= SET_NOSAVE | ACC_SET_ONLINE_ONLY;
    4242
    43         s = set_add(&acc->set, "server", MSN_NS_HOST, set_eval_account, acc);
     43        s = set_add(&acc->set, "server", NULL, set_eval_account, acc);
    4444        s->flags |= SET_NOSAVE | ACC_SET_OFFLINE_ONLY;
    4545
     
    5858        struct im_connection *ic = imcb_new(acc);
    5959        struct msn_data *md = g_new0(struct msn_data, 1);
     60        char *server = set_getstr(&ic->acc->set, "server");
    6061
    6162        ic->proto_data = md;
    6263        ic->flags |= OPT_PONGS | OPT_PONGED;
     64
     65        if (!server) {
     66                imcb_error(ic, "The msn protocol is disabled in this version because most servers disabled MSNP18 over port 1863.");
     67                imcb_error(ic, "If you find a working server, you can change the 'server' setting of this account. Good luck!");
     68                imcb_error(ic, "See also: http://ismsndeadyet.com/"); // shameless plug
     69                imc_logout(ic, FALSE);
     70                return;
     71        }
    6372
    6473        if (strchr(acc->user, '@') == NULL) {
     
    7685
    7786        imcb_log(ic, "Connecting");
    78         msn_ns_connect(ic, md->ns,
    79                        set_getstr(&ic->acc->set, "server"),
     87        msn_ns_connect(ic, md->ns, server,
    8088                       set_getint(&ic->acc->set, "port"));
    8189}
Note: See TracChangeset for help on using the changeset viewer.