From 5a8adc93fe10d4de8ae3a71578bf14565123f292 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 28 Mar 2020 10:40:33 +0100 Subject: [PATCH] Update password on NickServ SET PASSWORD message --- downstream.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/downstream.go b/downstream.go index a405846..6e772ed 100644 --- a/downstream.go +++ b/downstream.go @@ -1367,10 +1367,16 @@ func parseNickServCredentials(text, nick string) (username, password string, ok case "IDENTIFY": if len(params) == 1 { username = nick + password = params[0] } else { username = params[0] + password = params[1] + } + case "SET": + if len(params) == 2 && strings.EqualFold(params[0], "PASSWORD") { + username = nick + password = params[1] } - password = params[1] } return username, password, true }