mirror of
https://github.com/MinetestForFun/irc_modpack.git
synced 2024-12-23 09:10:36 +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.."'."
|
return false, "Unknown command '"..args.."'."
|
||||||
end
|
end
|
||||||
|
|
||||||
return true, ("Usage: %c%s %s -- %s"):format(
|
return true, ("Usage: %s%s %s -- %s"):format(
|
||||||
irc.config.command_prefix,
|
irc.config.command_prefix,
|
||||||
args,
|
args,
|
||||||
cmd.params or "<no parameters>",
|
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("string", "password") -- Server password
|
||||||
setting("bool", "secure", false) -- Enable a TLS connection, requires LuaSEC
|
setting("bool", "secure", false) -- Enable a TLS connection, requires LuaSEC
|
||||||
setting("number", "timeout", 60) -- Underlying socket timeout in seconds.
|
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", "debug", false) -- Enable debug output
|
||||||
setting("bool", "enable_player_part", true) -- Whether to enable players joining and parting the channel
|
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
|
setting("bool", "auto_join", true) -- Whether to automatically show players in the channel when they join
|
||||||
|
Loading…
Reference in New Issue
Block a user