]> jfr.im git - erebus.git/blobdiff - modules/eval.py
trivia - updated example json
[erebus.git] / modules / eval.py
index 96b80c737fb6d3ba09143bf3945b4e8ed8c61ce7..3e06472e5495ffe42e8d1e5a51751d2465bc9dc4 100644 (file)
@@ -47,7 +47,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()