From 235b51aca13f3ea68b697fccec0f19bbedca0bac Mon Sep 17 00:00:00 2001 From: Marius Halden Date: Sat, 11 Jun 2016 22:40:33 +0200 Subject: Use correct error when no schemes are supported (#78) This will make bitlbee tell the user about the requirement for oauth when the server actually announces support for oauth. If the server does not announce oauth support bitlbee will tell the user it doesn't support any of the schemes provided by the server. These messages were reversed before. --- protocols/jabber/sasl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols') diff --git a/protocols/jabber/sasl.c b/protocols/jabber/sasl.c index aa43def0..7778af1f 100644 --- a/protocols/jabber/sasl.c +++ b/protocols/jabber/sasl.c @@ -89,7 +89,7 @@ xt_status sasl_pkt_mechanisms(struct xt_node *node, gpointer data) } if (!want_oauth && !sup_plain && !sup_digest) { - if (!sup_gtalk) { + if (sup_gtalk) { imcb_error(ic, "This server requires OAuth " "(supported schemes:%s)", mechs->str); } else { -- cgit v1.2.3