mirror of
https://github.com/minetest-mods/irc.git
synced 2024-11-16 06:40:19 +01:00
Update src/init.lua
This commit is contained in:
parent
00e4acdcc5
commit
bfeb76d8b7
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
-- IRC Mod for Minetest
|
-- IRC Mod for Minetest
|
||||||
-- (C) 2012 Diego Martínez <kaeza@users.sf.net>
|
-- (C) 2012 Diego Martínez <kaeza@users.sf.net>
|
||||||
--
|
--
|
||||||
|
@ -73,9 +72,11 @@ 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 :)
|
--Source of flooding in these lines
|
||||||
irc.quit("Closing.");
|
--However, bot will not connect to a channel but can PM across minetest and IRC to users ust fine.
|
||||||
end
|
-- if (#plys <= 0) then -- Just in case :)
|
||||||
|
-- irc.quit("Closing.");
|
||||||
|
-- end
|
||||||
end
|
end
|
||||||
end);
|
end);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user