]> jfr.im git - erebus.git/blobdiff - modules/eval.py
update encoding
[erebus.git] / modules / eval.py
index aadd81b97112cc6ead75b83d845736942dabcf98..00f37ebd71e592fbe07faf4f35bd7ded5a2b8ed9 100644 (file)
@@ -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.")