From a9e5e5cd2f6acb7d5f243e85f71b3cc0e27137df Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Thu, 7 Apr 2016 18:33:27 +0300 Subject: [PATCH] Trim possible :-prefix sent by Pidgin in PASS command --- daemon.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon.go b/daemon.go index d46ee07..0f2b929 100644 --- a/daemon.go +++ b/daemon.go @@ -167,7 +167,8 @@ func ClientRegister(client *Client, cmd string, cols []string) { client.ReplyNotEnoughParameters("PASS") return } - client.password = &cols[1] + password := strings.TrimPrefix(cols[1], ":") + client.password = &password case "NICK": if len(cols) == 1 || len(cols[1]) < 1 { client.ReplyParts("431", "No nickname given") -- 2.44.0