From e2f8ed24234d09067ae1e2ff2cc2cbeacad0c28e Mon Sep 17 00:00:00 2001 From: Brandon Sturgeon Date: Fri, 5 Jul 2024 15:25:52 -0700 Subject: [PATCH] Add presend hook --- moon/cfc_chat_transit/server/init.moon | 2 ++ 1 file changed, 2 insertions(+) diff --git a/moon/cfc_chat_transit/server/init.moon b/moon/cfc_chat_transit/server/init.moon index 7a0d410..a4004f1 100644 --- a/moon/cfc_chat_transit/server/init.moon +++ b/moon/cfc_chat_transit/server/init.moon @@ -50,6 +50,8 @@ hook.Add "Think", loadHook, -> return nil ChatTransit.Send = (data) => + hook.Run "CFC_ChatTransit_SendMessage", data + logger\debug "Sending '#{data.Type}'" steamID64 = data.Data.SteamId