aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2016-06-11 22:40:33 +0200
committerdx <dx@dxzone.com.ar>2016-06-11 17:40:33 -0300
commit235b51aca13f3ea68b697fccec0f19bbedca0bac (patch)
tree7cf0fb1d4450a936d274eb41f6ee14c17d81d2e2
parente9a3e8cfb5de09771002dbbbb4fc2bfa75f3fe54 (diff)
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.
-rw-r--r--protocols/jabber/sasl.c2
1 files changed, 1 insertions, 1 deletions
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 {