From 75d81134270f456c6c353cfbc2d7e166aaefa506 Mon Sep 17 00:00:00 2001 From: Lukas Pohlreich Date: Sat, 27 Sep 2014 09:34:00 +0200 Subject: [PATCH] Change prefix when switch to public or mine stream --- rainbowstream/rainbow.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rainbowstream/rainbow.py b/rainbowstream/rainbow.py index eca5794..bd421d2 100644 --- a/rainbowstream/rainbow.py +++ b/rainbowstream/rainbow.py @@ -1195,6 +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' # Start new thread th = threading.Thread( target=stream, @@ -1207,6 +1209,8 @@ def switch(): elif target == 'mine': # Kill old thread g['stream_stop'] = True + # Set prefix to origin name + g['PREFIX'] = '@' + g['original_name'] # Start new thread th = threading.Thread( target=stream, -- 2.25.1