mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-25 02:00:37 +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
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user