Changeset 767b2d1 for protocols/msn/msn.c
- Timestamp:
- 2015-05-31T02:40:04Z (9 years ago)
- Children:
- 074c9b6
- Parents:
- 2ca933c
- git-author:
- dequis <dx@…> (07-04-15 12:59:51)
- git-committer:
- dequis <dx@…> (31-05-15 02:40:04)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/msn/msn.c
r2ca933c r767b2d1 43 43 s->flags |= SET_NOSAVE | ACC_SET_OFFLINE_ONLY; 44 44 45 s = set_add(&acc->set, "port", MSN_NS_PORT, set_eval_int, acc);45 s = set_add(&acc->set, "port", NULL, set_eval_int, acc); 46 46 s->flags |= ACC_SET_OFFLINE_ONLY; 47 47 … … 60 60 struct im_connection *ic = imcb_new(acc); 61 61 struct msn_data *md = g_new0(struct msn_data, 1); 62 char *server = set_getstr(&ic->acc->set, "server"); 62 char *server = set_getstr(&ic->acc->set, "server") ? : MSN_SSL_HOST; 63 int port = set_getint(&ic->acc->set, "port") ? : MSN_SSL_PORT; 63 64 64 65 ic->proto_data = md; 65 66 ic->flags |= OPT_PONGS | OPT_PONGED; 66 67 if (!server) {68 server = "geo.gateway.messenger.live.com";69 }70 67 71 68 if (strchr(acc->user, '@') == NULL) { … … 84 81 85 82 imcb_log(ic, "Connecting"); 86 msn_ns_connect(ic, server, 87 set_getint(&ic->acc->set, "port"));83 84 msn_ns_connect(ic, server, port); 88 85 89 86 if (set_getbool(&acc->set, "mail_notifications") && set_getstr(&acc->set, "mail_notifications_handle")) {
Note: See TracChangeset
for help on using the changeset viewer.