mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-26 18:50:38 +01:00
Merge branch 'master' of github.com:Ombridride/minetest-minetestforfun-server
This commit is contained in:
commit
f0b0ca71fb
1
mods/fail/depends.txt
Executable file
1
mods/fail/depends.txt
Executable file
@ -0,0 +1 @@
|
|||||||
|
irc?
|
@ -42,13 +42,17 @@ end
|
|||||||
data.send_func = function(name, msg) minetest.chat_send_player(name, msg) end
|
data.send_func = function(name, msg) minetest.chat_send_player(name, msg) end
|
||||||
|
|
||||||
if data.PUB_MSG then
|
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
|
end
|
||||||
|
|
||||||
data.is_player_available = minetest.get_player_by_name
|
data.is_player_available = minetest.get_player_by_name
|
||||||
|
|
||||||
if data.STRICT_PLAYER_CHECK == false then
|
if data.STRICT_PLAYER_CHECK == false then
|
||||||
|
|
||||||
data.is_player_available = function (name)
|
data.is_player_available = function (name)
|
||||||
return (io.open(minetest.get_worldpath().."/players/"..name) ~= nil)
|
return (io.open(minetest.get_worldpath().."/players/"..name) ~= nil)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user