mirror of
https://github.com/MinetestForFun/irc_modpack.git
synced 2024-12-22 16:50:35 +01:00
fix default command prefix is nil if no set, fix bad format
This commit is contained in:
parent
49aaacde76
commit
4bc72ba10f
@ -83,7 +83,7 @@ irc:register_bot_command("help", {
|
||||
return false, "Unknown command '"..args.."'."
|
||||
end
|
||||
|
||||
return true, ("Usage: %c%s %s -- %s"):format(
|
||||
return true, ("Usage: %s%s %s -- %s"):format(
|
||||
irc.config.command_prefix,
|
||||
args,
|
||||
cmd.params or "<no parameters>",
|
||||
|
@ -40,7 +40,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("string", "command_prefix") -- Prefix to use for bot commands
|
||||
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
|
||||
setting("bool", "auto_join", true) -- Whether to automatically show players in the channel when they join
|
||||
|
Loading…
Reference in New Issue
Block a user