1
0
mirror of https://github.com/MinetestForFun/irc_modpack.git synced 2024-12-22 23:20:17 +01:00

fix default command prefix is nil if no set, fix bad format

This commit is contained in:
crabman77 2017-02-21 00:43:46 +01:00
parent 49aaacde76
commit 4bc72ba10f
2 changed files with 2 additions and 2 deletions

View File

@ -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>",

View File

@ -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