Wait even longer before auto-connecting

This commit is contained in:
ShadowNinja 2014-02-27 00:21:58 -05:00
parent 8d8a8ec519
commit cdc6067e87
1 changed files with 3 additions and 3 deletions

View File

@ -41,17 +41,17 @@ minetest.register_privilege("irc_admin", {
give_to_singleplayer = true give_to_singleplayer = true
}) })
local firstrun = true local stepnum = 0
minetest.register_globalstep(function(dtime) return mt_irc:step(dtime) end) minetest.register_globalstep(function(dtime) return mt_irc:step(dtime) end)
function mt_irc:step(dtime) function mt_irc:step(dtime)
if firstrun then if stepnum == 3 then
firstrun = false
if self.config.auto_connect then if self.config.auto_connect then
self:connect() self:connect()
end end
end end
stepnum = stepnum + 1
if not self.connected then return end if not self.connected then return end