Remove chat broadcast because of abuse concerns
This commit is contained in:
parent
e510bd3e9c
commit
81276b000c
1 changed files with 1 additions and 22 deletions
|
@ -4,31 +4,10 @@ local dmf = get_mod("DMF")
|
||||||
-- ##### Local functions ###############################################################################################
|
-- ##### 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 ########################################################################################################
|
-- ##### 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.
|
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)
|
* 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)
|
function DMFMod:chat_whisper(peer_id, message)
|
||||||
-- @TODO: Rewrite for Darktide
|
-- @TODO: Rewrite for Darktide
|
||||||
dmf:notify("Chat whisper is not yet implemented!")
|
self:notify("Chat whisper is not yet implemented!")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue