Changeset 291c49b for protocols/jabber
- Timestamp:
- 2015-04-13T22:21:06Z (10 years ago)
- Children:
- 356e2dd
- Parents:
- 1aacef41
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/jabber.c
r1aacef41 r291c49b 56 56 static void jabber_init(account_t *acc) 57 57 { 58 char *default_server = NULL;59 58 set_t *s; 60 59 char str[16]; 61 62 if (strcmp(acc->prpl->name, "hipchat") == 0) {63 default_server = "chat.hipchat.com";64 } else {65 s = set_add(&acc->set, "oauth", "false", set_eval_oauth, acc);66 }67 60 68 61 s = set_add(&acc->set, "activity_timeout", "600", set_eval_int, acc); … … 86 79 s->flags |= ACC_SET_OFFLINE_ONLY | SET_HIDDEN_DEFAULT; 87 80 88 s = set_add(&acc->set, "server", default_server, set_eval_account, acc);81 s = set_add(&acc->set, "server", NULL, set_eval_account, acc); 89 82 s->flags |= SET_NOSAVE | ACC_SET_OFFLINE_ONLY | SET_NULL_OK; 83 84 if (strcmp(acc->prpl->name, "hipchat") == 0) { 85 set_setstr(&acc->set, "server", "chat.hipchat.com"); 86 } else { 87 s = set_add(&acc->set, "oauth", "false", set_eval_oauth, acc); 88 } 90 89 91 90 s = set_add(&acc->set, "ssl", "false", set_eval_bool, acc);
Note: See TracChangeset
for help on using the changeset viewer.