mirror of
https://github.com/minetest-mods/irc.git
synced 2024-11-17 07:10:19 +01:00
Testing
This commit is contained in:
parent
60506bb195
commit
4cbb5b8ce7
|
@ -72,8 +72,10 @@ minetest.register_globalstep(function ( dtime )
|
||||||
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) then -- Just in case :)
|
if ((#plys <= 0) and (minetest.is_singleplayer())) then
|
||||||
irc.quit("Closing.");
|
minetest.after(1.0, function ( )
|
||||||
|
irc.quit("Closing.");
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end);
|
end);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user