- Timestamp:
- 2015-02-28T23:17:33Z (10 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/msn/msn.c
ra880e34 ra6b00fc 41 41 s->flags |= SET_NOSAVE | ACC_SET_ONLINE_ONLY; 42 42 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); 44 44 s->flags |= SET_NOSAVE | ACC_SET_OFFLINE_ONLY; 45 45 … … 58 58 struct im_connection *ic = imcb_new(acc); 59 59 struct msn_data *md = g_new0(struct msn_data, 1); 60 char *server = set_getstr(&ic->acc->set, "server"); 60 61 61 62 ic->proto_data = md; 62 63 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 } 63 72 64 73 if (strchr(acc->user, '@') == NULL) { … … 76 85 77 86 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, 80 88 set_getint(&ic->acc->set, "port")); 81 89 }
Note: See TracChangeset
for help on using the changeset viewer.