1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-25 18:20:36 +01:00

Merge branch 'master' of github.com:Ombridride/minetest-minetestforfun-server

This commit is contained in:
Ombridride 2015-06-29 21:31:37 +02:00
commit f0b0ca71fb
2 changed files with 7 additions and 2 deletions

1
mods/fail/depends.txt Executable file
View File

@ -0,0 +1 @@
irc?

View File

@ -42,13 +42,17 @@ end
data.send_func = function(name, msg) minetest.chat_send_player(name, msg) end
if data.PUB_MSG then
data.send_func = function (name, msg) minetest.chat_send_all(msg) end
data.send_func = function (name, msg)
if minetest.get_modpath("irc") then
irc:say(msg)
end
minetest.chat_send_all(msg)
end
end
data.is_player_available = minetest.get_player_by_name
if data.STRICT_PLAYER_CHECK == false then
data.is_player_available = function (name)
return (io.open(minetest.get_worldpath().."/players/"..name) ~= nil)
end