From d6cc3e691ff9da73261223e54a24cfa8423aa1a3 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Sat, 10 Jul 2021 11:12:32 -0400 Subject: [PATCH] Add token auth --- commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands.go b/commands.go index 2bb238a..b95533d 100644 --- a/commands.go +++ b/commands.go @@ -37,7 +37,7 @@ func authenticate(m chat1.MsgSummary) { k.SendMessageByConvID(m.ConvID, "Please remember to delete your message after we have authenticated!") } parts := strings.Split(m.Content.Text.Body, " ") - if len(parts) != 3 || len(parts) != 2 { + if len(parts) != 3 && len(parts) != 2 { k.SendMessageByConvID(m.ConvID, "Invalid input for command authenticate. Requires username and password. This information is not stored in keybase, or logged. %+v", len(parts)) return }