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 b1fbd95..670689f 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 bd421d2..427830a 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 37ac0d1..fae3c8c 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 = [