1
0
mirror of https://github.com/minetest-mods/irc.git synced 2024-12-27 17:20:20 +01:00

Update src/init.lua

This commit is contained in:
kizeren 2012-12-16 20:56:17 -06:00
parent 00e4acdcc5
commit bfeb76d8b7

View File

@ -1,4 +1,3 @@
-- IRC Mod for Minetest
-- (C) 2012 Diego Martínez <kaeza@users.sf.net>
--
@ -73,9 +72,11 @@ 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.");
end
--Source of flooding in these lines
--However, bot will not connect to a channel but can PM across minetest and IRC to users ust fine.
-- if (#plys <= 0) then -- Just in case :)
-- irc.quit("Closing.");
-- end
end
end);