X-Git-Url: https://jfr.im/git/erebus.git/blobdiff_plain/3569ead38c546c3ecf47754b2c79d632d694a6ac..fa93b93394adc45f4b3bd1694c960df127cfc4da:/modules/help.py diff --git a/modules/help.py b/modules/help.py index 97dd1de..dc4e1b2 100644 --- a/modules/help.py +++ b/modules/help.py @@ -6,7 +6,7 @@ modinfo = { 'author': 'Erebus Team', 'license': 'public domain', - 'compatible': [2], + 'compatible': [0], 'depends': [], 'softdeps': [], } @@ -16,7 +16,7 @@ import modlib lib = modlib.modlib(__name__) def modstart(parent, *args, **kwargs): if parent.cfg.getboolean('erebus', 'nofakelag'): - lib.hook(needchan=False)(lib.help('[@|]', 'lists commands or describes a command', 'with @, lists all commands in ')(help_nolag)) + lib.hook('help', needchan=False)(lib.help('[@|]', 'lists commands or describes a command', 'with @, lists all commands in ')(help_nolag)) else: lib.hook(needchan=False)(lib.help("", "describes a command")(help)) return lib.modstart(parent, *args, **kwargs) @@ -156,7 +156,7 @@ 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 bool(int(bot.parent.cfg.get('help', 'autogen', default=0))): + if bot.parent.cfg.getboolean('help', 'autogen'): try: _genhelp(bot, user, chan, realtarget, *args) except: pass