daemon.go | 3 ++- diff --git a/daemon.go b/daemon.go index 833830ab1b96ea4c514388a2de020fc81e4fe646866a6a99f7fcb358561b1795..99c6b5b8ff9db0be3d6a431b0f50f79435f50da44e0f870e43ecf08a0571b0b2 100644 --- a/daemon.go +++ b/daemon.go @@ -167,7 +167,8 @@ if len(cols) == 1 || len(cols[1]) < 1 { 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")