From 72f58edbf0bd853f8cb5a2a0f25d48de5c0e8268 Mon Sep 17 00:00:00 2001 From: Orakaro Date: Sun, 28 Sep 2014 01:42:17 +0900 Subject: [PATCH] reset PREFIX after switch stream --- docs/conf.py | 4 ++-- rainbowstream/rainbow.py | 8 ++++---- setup.py | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index b1fbd95..670689f 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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. diff --git a/rainbowstream/rainbow.py b/rainbowstream/rainbow.py index bd421d2..427830a 100644 --- a/rainbowstream/rainbow.py +++ b/rainbowstream/rainbow.py @@ -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, diff --git a/setup.py b/setup.py index 37ac0d1..fae3c8c 100644 --- 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 = [ -- 2.25.1