aboutsummaryrefslogtreecommitdiff
path: root/cap_sasl.go
diff options
context:
space:
mode:
Diffstat (limited to 'cap_sasl.go')
-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 {