mirror of
https://github.com/minetest-mods/irc.git
synced 2024-12-27 09:10:21 +01:00
parent
03edbd29ed
commit
f98282818d
@ -44,7 +44,7 @@ setting("bool", "send_join_part", true) -- Whether to send player join and par
|
||||
setting("string", "password") -- Server password
|
||||
setting("bool", "secure", false) -- Enable a TLS connection, requires LuaSEC
|
||||
setting("number", "timeout", 60) -- Underlying socket timeout in seconds.
|
||||
setting("number", "reconnect", 600) -- Reconnect in seconds after timeout.
|
||||
setting("number", "reconnect", 600) -- Time between reconnection attempts, in seconds.
|
||||
setting("string", "command_prefix") -- Prefix to use for bot commands
|
||||
setting("bool", "debug", false) -- Enable debug output
|
||||
setting("bool", "enable_player_part", true) -- Whether to enable players joining and parting the channel
|
||||
|
4
init.lua
4
init.lua
@ -113,8 +113,8 @@ function irc:connect()
|
||||
end)
|
||||
|
||||
if not good then
|
||||
minetest.log("error", ("IRC: Connection error: %s: %s -- Reconnecting in ten minutes...")
|
||||
:format(self.config.server, message))
|
||||
minetest.log("error", ("IRC: Connection error: %s: %s -- Reconnecting in %d seconds...")
|
||||
:format(self.config.server, message, self.config.reconnect))
|
||||
minetest.after(self.config.reconnect, function() self:connect() end)
|
||||
return
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user