if len(args) == 0: # list commands
lines = []
for func in helps.values():
- 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.")
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.")