]> jfr.im git - erebus.git/commitdiff
fix TypeError not all arguments converted if return of eval is itself a tuple
authorzonidjan <redacted>
Thu, 21 May 2015 17:23:40 +0000 (12:23 -0500)
committerzonidjan <redacted>
Thu, 21 May 2015 17:23:40 +0000 (12:23 -0500)
modules/eval.py

index e516464355c51446baac414e5124bf7e41dabfc6..8293879803640305fecb2b93b0ff855153bcdbff 100644 (file)
@@ -29,7 +29,7 @@ def cmd_eval(bot, user, chan, realtarget, *args):
        try: ret = eval(' '.join(args))
        except SystemExit: raise
        except: bot.msg(replyto, "Error (%s): %s" % (sys.exc_info()[0], sys.exc_info()[1]))
-       else: bot.msg(replyto, "Done: %r" % (ret))
+       else: bot.msg(replyto, "Done: %r" % (ret,))
 
 
 @lib.hook('exec', needchan=False, glevel=lib.MANAGER)