aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2024-12-08 15:28:57 +0800
committerRunxi Yu <me@runxiyu.org>2024-12-08 15:28:57 +0800
commitcdfba507b24410799113d3dbf9210d27c242f6f4 (patch)
treefa91cb075459f0125cac8db9f6f925f5697fde9d
parentImplement SASL stub (diff)
downloadmeseircd-cdfba507b24410799113d3dbf9210d27c242f6f4.tar.gz
meseircd-cdfba507b24410799113d3dbf9210d27c242f6f4.tar.zst
meseircd-cdfba507b24410799113d3dbf9210d27c242f6f4.zip
AUTHENTICATE: Send ERR_SASLFAIL if sasl not requested
-rw-r--r--cap_sasl.go2
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 {