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:
parent
0c8538bfb8
commit
a18820356a
|
@ -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>")
|
||||
|
|
Loading…
Reference in New Issue
Block a user