mirror of
https://github.com/minetest-mods/irc.git
synced 2024-11-05 09:40:20 +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
|
||||
irc.poll();
|
||||
mt_irc.cur_time = mt_irc.cur_time - mt_irc.dtime;
|
||||
local plys = minetest.get_connected_players();
|
||||
if ((#plys <= 0) and (minetest.is_singleplayer())) then
|
||||
minetest.after(1.0, function ( )
|
||||
irc.quit("Closing.");
|
||||
end)
|
||||
end
|
||||
--local plys = minetest.get_connected_players();
|
||||
--if ((#plys <= 0) and (minetest.is_singleplayer())) then
|
||||
-- minetest.after(1.0, function ( )
|
||||
-- irc.quit("Closing.");
|
||||
-- end)
|
||||
--end
|
||||
end
|
||||
end);
|
||||
|
||||
local function do_connect ( )
|
||||
end
|
||||
|
||||
minetest.register_on_joinplayer(function ( player )
|
||||
|
||||
irc.register_callback("connect", function ( )
|
||||
|
|
Loading…
Reference in New Issue
Block a user