only use PREFIX as a string in raw_input
authorOrakaro <nhatminh_179@hotmail.com>
Tue, 2 Sep 2014 16:25:02 +0000 (01:25 +0900)
committerOrakaro <nhatminh_179@hotmail.com>
Tue, 2 Sep 2014 16:25:02 +0000 (01:25 +0900)
docs/conf.py
rainbowstream/colorset/config
rainbowstream/rainbow.py
setup.py

index 21df9bbbe911bde101a28244542cb4c3401d3ef1..647e44cf14312534cbdf6a4f240eeba34f8c17c7 100644 (file)
@@ -48,9 +48,9 @@ copyright = u'2014, Vu Nhat Minh'
 # built documents.
 #
 # The short X.Y version.
-version = '0.9.5'
+version = '0.9.6'
 # The full version, including alpha/beta/rc tags.
-release = '0.9.5'
+release = '0.9.6'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
index 66c4c5dc7fd221ac3f6b408abac621a839811ae2..14046fe1181356ca9d14aa0479209535feeaf92b 100644 (file)
@@ -57,9 +57,7 @@
         },
         "MESSAGE": {
             "CLOCK_FORMAT" : "%Y/%m/%d %H:%M:%S",
-            "DISPLAY" : "\n  #sender_name #sender_nick #to #recipient_name #recipient_nick :\n  #clock message_id:#id\n  #message",
-            "THREAD_META_LEFT" : "[id:#id] #clock",
-            "THREAD_META_RIGHT" : "#clock [id:#id]"
+            "DISPLAY" : "\n  #sender_name #sender_nick #to #recipient_name #recipient_nick :\n  #clock message_id:#id\n  #message"
         }
     }
 }
index 08cdcb7409cac73a65a3c2486fa138af92ce6678..bfca0fde62db5167760b2cc7f514a756b9845b50 100644 (file)
@@ -1723,6 +1723,7 @@ def listen():
         try:
             # raw_input
             if g['prefix']:
+                # Only use PREFIX as a string with raw_input
                 line = raw_input(g['decorated_name'](g['PREFIX']))
             else:
                 line = raw_input()
@@ -1807,7 +1808,7 @@ def stream(domain, args, name='Rainbow Stream'):
                     light_green("h stream") + \
                     light_magenta(" for more details.")
                 printNicely(guide)
-                sys.stdout.write(g['decorated_name'](g['PREFIX']))
+                sys.stdout.write(g['decorated_name'](c['PREFIX']))
                 sys.stdout.flush()
                 StreamLock.release()
                 break
@@ -1835,10 +1836,10 @@ def stream(domain, args, name='Rainbow Stream'):
                 # the 1st character of that word
                 if current_buffer and g['cmd'] != current_buffer:
                     sys.stdout.write(
-                        g['decorated_name'](g['PREFIX']) + str2u(current_buffer))
+                        g['decorated_name'](c['PREFIX']) + str2u(current_buffer))
                     sys.stdout.flush()
                 elif not c['HIDE_PROMPT']:
-                    sys.stdout.write(g['decorated_name'](g['PREFIX']))
+                    sys.stdout.write(g['decorated_name'](c['PREFIX']))
                     sys.stdout.flush()
             elif tweet.get('direct_message'):
                 # Check the semaphore pause and lock (stream process only)
index 43343b3a39d2a0991cb3a685c125e0c23907acb3..0cbc2720f50caebc6449f2c292b62b7673bed3f2 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ import os
 import os.path
 
 # Bumped version
-version = '0.9.5'
+version = '0.9.6'
 
 # Require
 install_requires = [