X-Git-Url: https://jfr.im/git/erebus.git/blobdiff_plain/3df2045a48610add89e8b7521279394f002bc73a..d524dcc86cfea090fff93a1109d79a1f094927cf:/modules/help.py diff --git a/modules/help.py b/modules/help.py index d510af7..2523536 100644 --- a/modules/help.py +++ b/modules/help.py @@ -177,10 +177,13 @@ def help(bot, user, chan, realtarget, *args): @lib.hook(needchan=False) @lib.help(None, "provides command list") +@lib.argsEQ(0) def showcommands(bot, user, chan, realtarget, *args): + if bot.parent.cfg.getboolean('erebus', 'nofakelag'): + return help_nolag(bot, user, chan, realtarget, *args) if bot.parent.cfg.getboolean('help', 'autogen'): try: - _genhelp(bot, user, chan, realtarget, *args) + _genhelp(bot, user, chan, realtarget) except: pass url = bot.parent.cfg.get('help', 'url', default=None) @@ -206,7 +209,7 @@ def help_nolag(bot, user, chan, realtarget, *args): mod = args[0][1:].lower() for func in helps.values(): if func.module == mod: - lines += _mkhelp(user, func) + lines += _mkhelp(user.glevel, func) for line in sorted(lines): bot.slowmsg(user, str(line)) bot.slowmsg(user, "End of command listing.")