From cfb1de044e569496396343da3b702ba78de21424 Mon Sep 17 00:00:00 2001 From: Hubert Hirtz Date: Wed, 24 Jun 2020 21:48:09 +0200 Subject: [PATCH] Don't save corrupted NickServ credentials soju saved most NickServ messages[0] as credentials because of a missing `default` clause in the check of the NickServ command. [0] messages that had at least a command and two other parameters --- downstream.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/downstream.go b/downstream.go index 9b5cf78..9bd3c5d 100644 --- a/downstream.go +++ b/downstream.go @@ -1682,6 +1682,8 @@ func parseNickServCredentials(text, nick string) (username, password string, ok username = nick password = params[1] } + default: + return "", "", false } return username, password, true }