mirror of
https://github.com/minetest-mods/irc.git
synced 2024-11-05 17:50:20 +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
|
||||
})
|
||||
|
||||
local firstrun = true
|
||||
local stepnum = 0
|
||||
|
||||
minetest.register_globalstep(function(dtime) return mt_irc:step(dtime) end)
|
||||
|
||||
function mt_irc:step(dtime)
|
||||
if firstrun then
|
||||
firstrun = false
|
||||
if stepnum == 3 then
|
||||
if self.config.auto_connect then
|
||||
self:connect()
|
||||
end
|
||||
end
|
||||
stepnum = stepnum + 1
|
||||
|
||||
if not self.connected then return end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user