From: Orakaro Date: Sun, 10 Aug 2014 06:43:58 +0000 (+0900) Subject: Merge pull request #36 from saturn597/master X-Git-Url: https://vcs.fsf.org/?p=rainbowstream.git;a=commitdiff_plain;h=ba7a4c02bf251fba0393c4cabd96636213a0f76c;hp=03b84f2505933859beed081b5137bfa8e0a76329 Merge pull request #36 from saturn597/master don't drop user input after spaces when attempting eval --- 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