From 81276b000c82eae631ac1d7cf42c703b41b138ac Mon Sep 17 00:00:00 2001 From: Aussiemon Date: Wed, 18 Jan 2023 11:20:36 -0700 Subject: [PATCH] Remove chat broadcast because of abuse concerns --- dmf/scripts/mods/dmf/modules/core/chat.lua | 23 +--------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/dmf/scripts/mods/dmf/modules/core/chat.lua b/dmf/scripts/mods/dmf/modules/core/chat.lua index 709df46..4efdfb1 100644 --- a/dmf/scripts/mods/dmf/modules/core/chat.lua +++ b/dmf/scripts/mods/dmf/modules/core/chat.lua @@ -4,31 +4,10 @@ local dmf = get_mod("DMF") -- ##### Local functions ############################################################################################### -- ##################################################################################################################### -local function broadcast_message(message, channel_tag) - local chat_manager = Managers.chat - - if chat_manager and channel_tag then - for channel_handle, channel in pairs(chat_manager:connected_chat_channels()) do - if channel and channel.tag == channel_tag then - chat_manager:send_channel_message(channel_handle, tostring(message)) - end - end - end -end - -- ##################################################################################################################### -- ##### DMFMod ######################################################################################################## -- ##################################################################################################################### ---[[ - Broadcasts the message to all players in a lobby. - * message [string]: message to broadcast - * channel_tag [string]: tag of target chat channel ---]] -function DMFMod:chat_broadcast(message, channel_tag) - broadcast_message(message, channel_tag) -end - --[[ Sends the message to a selected player. Only the host can use this method. * peer_id [peer_id]: peer_id of the player who will recieve the message (can't be host's peer_id) @@ -36,5 +15,5 @@ end --]] function DMFMod:chat_whisper(peer_id, message) -- @TODO: Rewrite for Darktide - dmf:notify("Chat whisper is not yet implemented!") + self:notify("Chat whisper is not yet implemented!") end