3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00

exec: repr() eval output for proper formatting

This ensures that results that are an empty string, for example, are properly formatted as ''.
This commit is contained in:
James Lu 2016-08-09 10:23:46 -07:00
parent 6f0be9400b
commit 1660705658

View File

@ -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