]> jfr.im git - erebus.git/commitdiff
help - add a line denoting the end of the listing
authorzonidjan <redacted>
Thu, 8 Jun 2017 03:15:05 +0000 (22:15 -0500)
committerzonidjan <redacted>
Thu, 8 Jun 2017 03:15:05 +0000 (22:15 -0500)
modules/help.py

index 8d79721adb9c0b3a48cf6e6d559b76de164dab99..299cf0a78298c930cc04b8749fbc47b8c95ac5d7 100644 (file)
@@ -91,6 +91,7 @@ def help(bot, user, chan, realtarget, *args):
                                                lines.append(HelpLine(c, "", "Alias of %s" % (func.cmd[0]), (user.glevel > 0), func.reqglevel, func.__module__))
                for line in sorted(lines):
                        bot.slowmsg(user, str(line))
+               bot.slowmsg(user, "End of command listing.")
        else: # help for a specific command/topic
                cmd = str(' '.join(args))
                if cmd in cmds and user.glevel >= cmds[cmd].reqglevel:
@@ -98,6 +99,7 @@ def help(bot, user, chan, realtarget, *args):
                        bot.slowmsg(user, str(HelpLine(func.cmd[0], func.syntax, func.shorthelp, (user.glevel > 0), func.reqglevel, func.__module__)))
                        for line in func.longhelps:
                                bot.slowmsg(user, "  %s" % (line))
+                       bot.slowmsg(user, "End of help for %s." % (func.cmd[0]))
 
                        if len(func.cmd) > 1:
                                bot.slowmsg(user, "  Aliases: %s" % (' '.join(func.cmd[1:])))