From: Egor Date: Thu, 25 Jan 2024 01:46:23 +0000 (+0200) Subject: announce SASL mechanisms when using CAP 302 X-Git-Url: https://git.patchysicp.xyz/?a=commitdiff_plain;h=83473adf9adc7d01f5f989255c0348d14ec3bdfd;p=patchyircd.git announce SASL mechanisms when using CAP 302 --- 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;