From 2d71da2234823fc7cb182961ec869f493a83e08a 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 21bda0d..a7ac2c6 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")