mirror of
https://github.com/minetest-mods/irc.git
synced 2024-12-28 17:50:18 +01:00
Wait even longer before auto-connecting
This commit is contained in:
parent
8d8a8ec519
commit
cdc6067e87
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user