diff options
author | Runxi Yu <me@runxiyu.org> | 2024-12-08 15:28:57 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2024-12-08 15:28:57 +0800 |
commit | cdfba507b24410799113d3dbf9210d27c242f6f4 (patch) | |
tree | fa91cb075459f0125cac8db9f6f925f5697fde9d | |
parent | Implement SASL stub (diff) | |
download | meseircd-cdfba507b24410799113d3dbf9210d27c242f6f4.tar.gz meseircd-cdfba507b24410799113d3dbf9210d27c242f6f4.tar.zst meseircd-cdfba507b24410799113d3dbf9210d27c242f6f4.zip |
AUTHENTICATE: Send ERR_SASLFAIL if sasl not requested
-rw-r--r-- | cap_sasl.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |