split default modes into their parts

This commit is contained in:
Tai @ Flex 2017-02-28 20:03:25 +00:00
parent 9e374110e5
commit 44d36c6801

View File

@ -1,22 +0,0 @@
-- The default-default mode - just get all player names and send message to all
chat_modes.register("shout", function()
return {
public = true,
players = conplayers,
}
end)
-- Channel mode
local playerchannels = {}
chat_modes.register("channel", function(params)
local channelname = params
-- Switch to a channel
if not playerchannels[channelname] then
playerchannels[channelname] = {}
end
end)