# 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/
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.")