2020-05-24 15:46:26 +02:00
|
|
|
--
|
|
|
|
-- Mod channels experimental handlers
|
|
|
|
--
|
2024-10-28 15:57:54 +01:00
|
|
|
local mod_channel = core.mod_channel_join("experimental_preview")
|
2020-05-24 15:46:26 +02:00
|
|
|
|
2024-10-28 15:57:54 +01:00
|
|
|
core.register_on_modchannel_message(function(channel, sender, message)
|
|
|
|
core.log("action", "[modchannels] Server received message `" .. message
|
2020-05-24 15:46:26 +02:00
|
|
|
.. "` on channel `" .. channel .. "` from sender `" .. sender .. "`")
|
|
|
|
|
|
|
|
if mod_channel:is_writeable() then
|
|
|
|
mod_channel:send_all("experimental answers to preview")
|
|
|
|
mod_channel:leave()
|
|
|
|
end
|
|
|
|
end)
|