split default modes into their parts
This commit is contained in:
parent
9e374110e5
commit
44d36c6801
@ -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)
|
|
Loading…
x
Reference in New Issue
Block a user