mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-12 05:02:32 +01:00
Misc: Show a basic help when @help is called without an argument and customHelpString isn't set.
This commit is contained in:
parent
0d89b2352b
commit
428f5ca5dc
@ -292,7 +292,11 @@ class Misc(callbacks.Plugin):
|
|||||||
if cHelp:
|
if cHelp:
|
||||||
irc.reply(cHelp)
|
irc.reply(cHelp)
|
||||||
else:
|
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
|
return
|
||||||
command = list(map(callbacks.canonicalName, command))
|
command = list(map(callbacks.canonicalName, command))
|
||||||
(maxL, cbs) = irc.findCallbacksForArgs(command)
|
(maxL, cbs) = irc.findCallbacksForArgs(command)
|
||||||
|
Loading…
Reference in New Issue
Block a user