Fix error in previous `help` merge.

This commit is contained in:
Diego Martínez 2016-12-03 18:35:17 -03:00
parent 0c8538bfb8
commit a18820356a
1 changed files with 3 additions and 3 deletions

View File

@ -100,11 +100,11 @@ irc:register_bot_command("help", {
local cmd = irc.bot_commands[args]
if not cmd then
return false, "Unknown command '"..cmdname.."'."
return false, "Unknown command '"..args.."'."
end
return true, ("Usage: %c%s %s -- %s"):format(
irc.config.command_prefix,
return true, ("Usage: %s%s %s -- %s"):format(
irc.config.command_prefix or "",
args,
cmd.params or "<no parameters>",
cmd.description or "<no description>")