Merge pull request #36 from saturn597/master
authorOrakaro <DTVD@users.noreply.github.com>
Sun, 10 Aug 2014 06:43:58 +0000 (15:43 +0900)
committerOrakaro <DTVD@users.noreply.github.com>
Sun, 10 Aug 2014 06:43:58 +0000 (15:43 +0900)
don't drop user input after spaces when attempting eval

rainbowstream/rainbow.py

index c66ae9a..3d154ca 100644 (file)
@@ -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