aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/jabber/jabber.c
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/jabber/jabber.c')
-rw-r--r--protocols/jabber/jabber.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/protocols/jabber/jabber.c b/protocols/jabber/jabber.c
index 431b3e54..38fb4966 100644
--- a/protocols/jabber/jabber.c
+++ b/protocols/jabber/jabber.c
@@ -84,7 +84,10 @@ static void jabber_init(account_t *acc)
if (strcmp(acc->prpl->name, "hipchat") == 0) {
set_setstr(&acc->set, "server", "chat.hipchat.com");
} else {
- s = set_add(&acc->set, "oauth", "false", set_eval_oauth, acc);
+ set_add(&acc->set, "oauth", "false", set_eval_oauth, acc);
+
+ /* this reuses set_eval_oauth, which clears the password */
+ set_add(&acc->set, "anonymous", "false", set_eval_oauth, acc);
}
s = set_add(&acc->set, "ssl", "false", set_eval_bool, acc);