]> jfr.im git - erebus.git/blobdiff - modules/eval.py
help - show required channel level in command list
[erebus.git] / modules / eval.py
index 96b80c737fb6d3ba09143bf3945b4e8ed8c61ce7..d2b82c83567e2005d5936e8d714b8139790b72d0 100644 (file)
@@ -6,8 +6,9 @@
 modinfo = {
        'author': 'Erebus Team',
        'license': 'public domain',
-       'compatible': [1],
+       'compatible': [1,2],
        'depends': [],
+       'softdeps': ['help'],
 }
 
 # preamble
@@ -47,7 +48,7 @@ def cmd_exec(bot, user, chan, realtarget, *args):
        except Exception: bot.msg(replyto, "Error: %s %s" % (sys.exc_info()[0], sys.exc_info()[1]))
        else: bot.msg(replyto, "Done.")
 
-@lib.hook('exception', glevel=lib.OWNER)
+@lib.hook('exception', needchan=False, glevel=lib.OWNER)
 @lib.help(None, "cause an exception")
 def cmd_exception(*args, **kwargs):
        raise Exception()