Changeset b38f655 for protocols/jabber
- Timestamp:
- 2015-05-28T05:26:30Z (10 years ago)
- Branches:
- master
- Children:
- 6191263, d2d2b80
- Parents:
- 0864a52
- git-author:
- dequis <dx@…> (28-05-15 03:41:37)
- git-committer:
- dequis <dx@…> (28-05-15 05:26:30)
- Location:
- protocols/jabber
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/iq.c
r0864a52 rb38f655 803 803 } 804 804 805 max = set_getint(&ic->acc->set, " gmail_notifications_limit");805 max = set_getint(&ic->acc->set, "mail_notifications_limit"); 806 806 c = c->children; 807 807 -
protocols/jabber/jabber.c
r0864a52 rb38f655 101 101 s = set_add(&acc->set, "xmlconsole", "false", set_eval_bool, acc); 102 102 103 s = set_add(&acc->set, " gmail_notifications", "false", set_eval_bool, acc);103 s = set_add(&acc->set, "mail_notifications", "false", set_eval_bool, acc); 104 104 s->flags |= ACC_SET_OFFLINE_ONLY; 105 105 106 106 /* changing this is rarely needed so keeping it secret */ 107 s = set_add(&acc->set, " gmail_notifications_limit", "5", set_eval_int, acc);107 s = set_add(&acc->set, "mail_notifications_limit", "5", set_eval_int, acc); 108 108 s->flags |= SET_HIDDEN_DEFAULT; 109 109 110 s = set_add(&acc->set, " notify_handle", NULL, NULL, acc);110 s = set_add(&acc->set, "mail_notifications_handle", NULL, NULL, acc); 111 111 s->flags |= ACC_SET_OFFLINE_ONLY | SET_NULL_OK; 112 112 … … 268 268 imcb_add_buddy(ic, JABBER_XMLCONSOLE_HANDLE, NULL); 269 269 } 270 if (set_getbool(&acc->set, "gmail_notifications")) { 270 271 if (set_getbool(&acc->set, "mail_notifications")) { 272 /* It's gmail specific, but it checks for server support before enabling it */ 271 273 jd->flags |= JFLAG_GMAILNOTIFY; 272 if (set_getstr(&acc->set, " notify_handle")) {273 imcb_add_buddy(ic, set_getstr(&acc->set, " notify_handle"), NULL);274 if (set_getstr(&acc->set, "mail_notifications_handle")) { 275 imcb_add_buddy(ic, set_getstr(&acc->set, "mail_notifications_handle"), NULL); 274 276 } 275 277 }
Note: See TracChangeset
for help on using the changeset viewer.