X-Git-Url: https://jfr.im/git/erebus.git/blobdiff_plain/fa93b93394adc45f4b3bd1694c960df127cfc4da..4477123de1254afa80243f7f9eab62c5cbf7b786:/modules/eval.py diff --git a/modules/eval.py b/modules/eval.py index aadd81b..00f37eb 100644 --- a/modules/eval.py +++ b/modules/eval.py @@ -1,4 +1,5 @@ # Erebus IRC bot - Author: Erebus Team +# vim: fileencoding=utf-8 # !EVAL and !EXEC commands # This file is released into the public domain; see http://unlicense.org/ @@ -44,7 +45,7 @@ def cmd_exec(bot, user, chan, realtarget, *args): if chan is not None: replyto = chan else: replyto = user - try: exec ' '.join(args) + try: exec(' '.join(args)) except Exception: bot.msg(replyto, "Error: %s %s" % (sys.exc_info()[0], sys.exc_info()[1])) else: bot.msg(replyto, "Done.")