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:
parent
6f0be9400b
commit
1660705658
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user