Misc: Show a basic help when @help is called without an argument and customHelpString isn't set.

This commit is contained in:
Valentin Lorentz 2020-05-08 12:37:07 +02:00
parent 0d89b2352b
commit 428f5ca5dc

View File

@ -292,7 +292,11 @@ class Misc(callbacks.Plugin):
if cHelp:
irc.reply(cHelp)
else:
irc.error()
irc.reply(_(
"Use the 'list' command to list all plugins, and "
"'list <plugin>' to list all commands in a plugin. "
"To show the help of a command, use 'help <command>'. "
))
return
command = list(map(callbacks.canonicalName, command))
(maxL, cbs) = irc.findCallbacksForArgs(command)