From 1660705658b4d83b86a2adb7fc32ac270ad97856 Mon Sep 17 00:00:00 2001 From: James Lu Date: Tue, 9 Aug 2016 10:23:46 -0700 Subject: [PATCH] exec: repr() eval output for proper formatting This ensures that results that are an empty string, for example, are properly formatted as ''. --- plugins/exec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/exec.py b/plugins/exec.py index a59d1c5..421d902 100644 --- a/plugins/exec.py +++ b/plugins/exec.py @@ -46,7 +46,7 @@ def _eval(irc, source, args): log.info('(%s) Evaluating %r for %s', irc.name, args, irc.getHostmask(source)) - irc.reply(eval(args)) + irc.reply(repr(eval(args))) utils.add_cmd(_eval, 'eval') @utils.add_cmd