Skip to content

Commit 78f1cc3

Browse files
committed
Fix joinscript value interpolation quoting
1 parent 7041027 commit 78f1cc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Site/src/routes/(rbxclient)/game/join/+server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ export async function GET({ url }) {
6363
const scriptFile = Bun.file("../data/server/loadscripts/join.lua")
6464
const script = (await scriptFile.text())
6565
.replaceAll("_PLACE_ID", place.id.toString())
66-
.replaceAll("_SERVER_ADDRESS", serverAddress) // TODO: quote
66+
.replaceAll("_SERVER_ADDRESS", `"${serverAddress}"`)
6767
.replaceAll("_SERVER_PORT", serverPort.toString())
6868
.replaceAll("_CREATOR_ID", creatorUsername)
6969
.replaceAll("_USER_ID", Math.floor(Math.random() * 1e9).toString()) // todo: tho not rly used 4 much atm
70-
.replaceAll("_USER_NAME", user.username)
70+
.replaceAll("_USERNAME", `"${user.username}"`)
7171
.replaceAll("_MEMBERSHIP_TYPE", membershipType(user.permissionLevel))
7272
.replaceAll("_CHAR_APPEARANCE", `"${charApp}"`)
7373
.replaceAll("_PING_URL", `"${pingUrl}"`)

0 commit comments

Comments
 (0)