From cdfba507b24410799113d3dbf9210d27c242f6f4 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 8 Dec 2024 15:28:57 +0800 Subject: AUTHENTICATE: Send ERR_SASLFAIL if sasl not requested --- cap_sasl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cap_sasl.go b/cap_sasl.go index 7044efb..36a353d 100644 --- a/cap_sasl.go +++ b/cap_sasl.go @@ -33,7 +33,7 @@ func init() { func handleClientAuthenticate(msg RMsg, client *Client) error { _, ok := client.Caps["sasl"] if !ok { - return client.Send(MakeMsg(self, "TODO", "you're trying to sasl without requesting for it")) + return client.Send(MakeMsg(self, ERR_SASLFAIL, client.Nick, "SASL authentication failed (capability not requested)")) } if len(msg.Params) < 1 { -- cgit v1.2.3