Merge pull request #2 from kizeren/master

Flooding fix.
This commit is contained in:
kaeza 2012-12-16 19:01:07 -08:00
commit e1d0122594
1 changed files with 5 additions and 4 deletions

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);