From 3899a3288ccc704dc3e1786393b1eb1b861a4ae1 Mon Sep 17 00:00:00 2001 From: Brandon Sturgeon Date: Mon, 15 Feb 2021 04:36:47 -0800 Subject: [PATCH] Stringify the cached value too --- moon/cfc_chat_transit/server/init.moon | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/moon/cfc_chat_transit/server/init.moon b/moon/cfc_chat_transit/server/init.moon index 8849cf4..ebbd525 100644 --- a/moon/cfc_chat_transit/server/init.moon +++ b/moon/cfc_chat_transit/server/init.moon @@ -38,9 +38,11 @@ ChatTransit.GetTeamColorCode = (teamName) => r, g, b = color\Unpack! calculated = lshift(r, 16) + lshift(g, 8) + b + calculated = tostring calculated + @TeamColorCache[teamName] = calculated - tostring calculated + calculated ChatTransit.ReceiveMessage = (ply, text, teamChat) => return if teamChat