mirror of
https://github.com/minetest-mods/irc.git
synced 2024-11-10 20:10:19 +01:00
Testing
This commit is contained in:
parent
af47f58767
commit
a1957de7ee
15
src/init.lua
15
src/init.lua
|
@ -71,15 +71,18 @@ minetest.register_globalstep(function ( dtime )
|
||||||
end
|
end
|
||||||
irc.poll();
|
irc.poll();
|
||||||
mt_irc.cur_time = mt_irc.cur_time - mt_irc.dtime;
|
mt_irc.cur_time = mt_irc.cur_time - mt_irc.dtime;
|
||||||
local plys = minetest.get_connected_players();
|
--local plys = minetest.get_connected_players();
|
||||||
if ((#plys <= 0) and (minetest.is_singleplayer())) then
|
--if ((#plys <= 0) and (minetest.is_singleplayer())) then
|
||||||
minetest.after(1.0, function ( )
|
-- minetest.after(1.0, function ( )
|
||||||
irc.quit("Closing.");
|
-- irc.quit("Closing.");
|
||||||
end)
|
-- end)
|
||||||
end
|
--end
|
||||||
end
|
end
|
||||||
end);
|
end);
|
||||||
|
|
||||||
|
local function do_connect ( )
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_on_joinplayer(function ( player )
|
minetest.register_on_joinplayer(function ( player )
|
||||||
|
|
||||||
irc.register_callback("connect", function ( )
|
irc.register_callback("connect", function ( )
|
||||||
|
|
Loading…
Reference in New Issue
Block a user