use correct registration call

dev
Tai @ Flex 2017-03-03 10:51:36 +00:00
parent 5156a01cf7
commit 3b6eceaf11
4 changed files with 4 additions and 5 deletions

View File

@ -7,7 +7,7 @@ local playerschannel = {} -- playername --> channel_name
-- Define a special moderator channel that cannot be joined by regular players
local moderatorchannel = minetest.setting_get("chat_modes.channels.moderator") or "moderators"
chat_modes.register("channel", {
chat_modes.register_mode("channel", {
help = "Send messages to a specific channel only.",
can_register = function(playername, params)

View File

@ -10,7 +10,7 @@ if minetest.get_modpath("chat_modes") and chat_modes then
local examplemode = {}
chat_modes.register("example", {
chat_modes.register_mode("example", {
help = "example",
register = function(playername, params)

View File

@ -1,11 +1,10 @@
-- Proximity mode
local playerproximitypref = {} -- playername --> (int) max message distance
local maxproximity = int(minetest.setting_get("chat_modes.maxproximity") ) or 50
chat_modes.register("proximity", {
chat_modes.register_mode("proximity", {
help = "Send messages to players within a certain distance",
register = function(playername, params)

View File

@ -1,6 +1,6 @@
-- The default-default mode - just get all connected players
chat_modes.register("shout", {
chat_modes.register_mode("shout", {
help = "Send all messages to all non-deaf players",
getPlayers = function()