Plugin: Only show the first paragraph; as the whole help can be very long.

This commit is contained in:
Valentin Lorentz 2021-04-05 17:32:26 +02:00
parent 833af36b08
commit 66ba7cb020

View File

@ -56,7 +56,7 @@ class Plugin(callbacks.Plugin):
"""
doc = cb.getPluginHelp()
if doc:
irc.reply(utils.str.normalizeWhitespace(doc))
irc.reply(utils.str.normalizeWhitespace(doc.split("\n\n")[0]))
else:
irc.reply(_('That plugin is loaded, but has no plugin help.'))
help = wrap(help, ['plugin'])