From 20fc51b989f7793b032b379aed909680f2654546 Mon Sep 17 00:00:00 2001 From: Me Date: Sun, 10 Aug 2014 01:42:19 -0400 Subject: [PATCH] don't drop user input after spaces when attempting eval --- rainbowstream/rainbow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rainbowstream/rainbow.py b/rainbowstream/rainbow.py index c66ae9a..3d154ca 100644 --- a/rainbowstream/rainbow.py +++ b/rainbowstream/rainbow.py @@ -1520,7 +1520,7 @@ def reset(): printNicely(magenta('Need tips ? Type "h" and hit Enter key!')) g['reset'] = False try: - printNicely(str(eval(g['cmd']))) + printNicely(str(eval('%s %s' % (g['cmd'], g['stuff'])))) except Exception: pass -- 2.25.1