1
0
mirror of https://github.com/minetest-mods/irc.git synced 2024-11-05 17:50:20 +01:00

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

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>")