diff --git a/moon/cfc_chat_transit/server/init.moon b/moon/cfc_chat_transit/server/init.moon index 5eaceda..8f033d1 100644 --- a/moon/cfc_chat_transit/server/init.moon +++ b/moon/cfc_chat_transit/server/init.moon @@ -47,6 +47,8 @@ ChatTransit.ReceiveMessage = (ply, text, teamChat) => return unless text return if text == "" + @Logger\debug "Received message for #{ply\Nick!}, '#{text}'" + teamName = ply\Team! rankColor = @GetTeamColorCode teamName avatar = ply.PlayerSummary.response.players[1].avatar @@ -67,4 +69,6 @@ ChatTransit.ReceiveMessage = (ply, text, teamChat) => @WebSocket\write message + @Logger\debug "Sent message '#{text}' to websocket" + hook.Add "PlayerSay", "CFC_ChatTransit_MessageListener", ChatTransit\ReceiveMessage, HOOK_MONITOR_LOW