]> jfr.im git - erebus.git/commitdiff
help - if nofakelag, showcommands should send the list instead of URL
authorJohn Runyon <redacted>
Tue, 20 Jun 2023 22:04:15 +0000 (16:04 -0600)
committerJohn Runyon <redacted>
Tue, 20 Jun 2023 22:04:15 +0000 (16:04 -0600)
modules/help.py

index f07320c4d1d4ee37a293a1945b63c1573c0aa1b2..8ab96c22600034f1e5ea03dc2fff5d4d1c165051 100644 (file)
@@ -178,6 +178,8 @@ def help(bot, user, chan, realtarget, *args):
 @lib.hook(needchan=False)
 @lib.help(None, "provides command list")
 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)