From 83473adf9adc7d01f5f989255c0348d14ec3bdfd Mon Sep 17 00:00:00 2001 From: Egor Date: Thu, 25 Jan 2024 03:46:23 +0200 Subject: [PATCH] announce SASL mechanisms when using CAP 302 --- src/irc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/irc.c b/src/irc.c index d468a41..fcf39ac 100644 --- a/src/irc.c +++ b/src/irc.c @@ -216,7 +216,7 @@ int processPacket(struct client_data *client, char *source, char *command, int a client->caps |= CAP_302; copy_strf(&databuf, ":%s CAP * LS :cap-notify multi-prefix extended-join away-notify invite-notify extended-monitor chghost setname account-notify%s\r\n", hostname, - client->umode & UMODE_SECURE ? " sasl" : ""); + client->umode & UMODE_SECURE ? (client->caps & CAP_302 ? " sasl=PLAIN" : " sasl") : ""); sendbuf(client); if (!is_registered(client)) { client->regstate = REG_CAPLS; -- 2.56.0