1
0
mirror of https://github.com/minetest-mods/irc.git synced 2024-11-05 09:40:20 +01:00
This commit is contained in:
Diego Martínez 2012-12-18 23:15:48 -02:00
parent af47f58767
commit a1957de7ee

View File

@ -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 ( )