diff options
| author | dequis <dx@dxzone.com.ar> | 2015-05-30 21:11:20 -0300 |
|---|---|---|
| committer | dequis <dx@dxzone.com.ar> | 2015-05-30 21:11:20 -0300 |
| commit | 0f7eccff5b3f7436f50c66e4270009fa6290a578 (patch) | |
| tree | 6bb388836ad43e2beea4880082b0728201c09772 /protocols/msn/msn.c | |
| parent | c42d9916663ecae98d01c539cf038d9bc99acfbb (diff) | |
| parent | f453a7faa95f9210adbdba20644f280cce68c42e (diff) | |
Merge branch 'develop'
Diffstat (limited to 'protocols/msn/msn.c')
| -rw-r--r-- | protocols/msn/msn.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/protocols/msn/msn.c b/protocols/msn/msn.c index 4acff23a..8d3e7787 100644 --- a/protocols/msn/msn.c +++ b/protocols/msn/msn.c @@ -45,7 +45,11 @@ static void msn_init(account_t *acc) s = set_add(&acc->set, "port", MSN_NS_PORT, set_eval_int, acc); s->flags |= ACC_SET_OFFLINE_ONLY; - set_add(&acc->set, "mail_notifications", "false", set_eval_bool, acc); + s = set_add(&acc->set, "mail_notifications", "false", set_eval_bool, acc); + s->flags |= ACC_SET_OFFLINE_ONLY; + + s = set_add(&acc->set, "mail_notifications_handle", NULL, NULL, acc); + s->flags |= ACC_SET_OFFLINE_ONLY | SET_NULL_OK; acc->flags |= ACC_FLAG_AWAY_MESSAGE | ACC_FLAG_STATUS_MESSAGE | ACC_FLAG_HANDLE_DOMAINS; @@ -81,6 +85,10 @@ static void msn_login(account_t *acc) imcb_log(ic, "Connecting"); msn_ns_connect(ic, server, set_getint(&ic->acc->set, "port")); + + if (set_getbool(&acc->set, "mail_notifications") && set_getstr(&acc->set, "mail_notifications_handle")) { + imcb_add_buddy(ic, set_getstr(&acc->set, "mail_notifications_handle"), NULL); + } } static void msn_logout(struct im_connection *ic) |
