From 268138fcbc9098a9903beeb6177ee76bcc053ebf Mon Sep 17 00:00:00 2001 From: LemonBoy Date: Fri, 13 Jan 2017 13:05:41 +0100 Subject: [PATCH] Print a warning if the server doesn't support SASL at all. Fixes #616 --- src/fe-common/irc/fe-sasl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/fe-common/irc/fe-sasl.c b/src/fe-common/irc/fe-sasl.c index fc8105fc..beaf688d 100644 --- a/src/fe-common/irc/fe-sasl.c +++ b/src/fe-common/irc/fe-sasl.c @@ -54,6 +54,11 @@ static void sig_cap_end(IRC_SERVER_REC *server) * halted and when the control goes back to irc_parse_incoming * the server object is safely destroyed. */ signal_stop(); + /* If the server doesn't support the sasl cap then we print a + * message to let the user know. */ + if (!gslist_find_string(server->cap_active, "sasl")) + printformat(server, NULL, MSGLEVEL_CRAP, IRCTXT_SASL_ERROR, + "The server doesn't support SASL authentication"); } }