Browse Source

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

neoirc
crabman77 5 years ago
parent
commit
4bc72ba10f
  1. 2
      irc/botcmds.lua
  2. 2
      irc/config.lua

2
irc/botcmds.lua

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

2
irc/config.lua

@ -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…
Cancel
Save