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