reset PREFIX after switch stream
authorOrakaro <nhatminh_179@hotmail.com>
Sat, 27 Sep 2014 16:42:17 +0000 (01:42 +0900)
committerOrakaro <nhatminh_179@hotmail.com>
Sat, 27 Sep 2014 16:42:17 +0000 (01:42 +0900)
docs/conf.py
rainbowstream/rainbow.py
setup.py

index b1fbd954abcce6a6a03848e79820bb3c2c10fc83..670689f85ad7787a91797e285da206873684f7d6 100644 (file)
@@ -48,9 +48,9 @@ copyright = u'2014, Vu Nhat Minh'
 # built documents.
 #
 # The short X.Y version.
-version = '1.1.3'
+version = '1.1.4'
 # The full version, including alpha/beta/rc tags.
-release = '1.1.3'
+release = '1.1.4'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
index bd421d24664cef082e715038b63dcd8fe41182b7..427830aa020d60f56b3d8980b9505cd243bf9fe8 100644 (file)
@@ -1195,8 +1195,8 @@ def switch():
             # Kill old thread
             g['stream_stop'] = True
             args.track_keywords = keyword
-            # Set prefix to origin name with public
-            g['PREFIX'] = '@' + g['original_name'] + '/public'
+            # Reset prefix
+            g['PREFIX'] = u2str(emojize(c['PREFIX']))
             # Start new thread
             th = threading.Thread(
                 target=stream,
@@ -1209,8 +1209,8 @@ def switch():
         elif target == 'mine':
             # Kill old thread
             g['stream_stop'] = True
-            # Set prefix to origin name
-            g['PREFIX'] = '@' + g['original_name']
+            # Reset prefix
+            g['PREFIX'] = u2str(emojize(c['PREFIX']))
             # Start new thread
             th = threading.Thread(
                 target=stream,
index 37ac0d1124f5128e6337889d621f78ca6e4b86e0..fae3c8c88dc16e3cab72168a6e9a9ea995277591 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ import os
 import os.path
 
 # Bumped version
-version = '1.1.3'
+version = '1.1.4'
 
 # Require
 install_requires = [