projects
/
rainbowstream.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
6df5cc3
)
Merge pull request #65 from polarkac/prefix_switch_fix
author
Orakaro
<DTVD@users.noreply.github.com>
Sat, 27 Sep 2014 16:37:10 +0000
(
01:37
+0900)
committer
Orakaro
<DTVD@users.noreply.github.com>
Sat, 27 Sep 2014 16:37:10 +0000
(
01:37
+0900)
Change prefix when switch to public or mine stream
rainbowstream/rainbow.py
patch
|
blob
|
blame
|
history
diff --git
a/rainbowstream/rainbow.py
b/rainbowstream/rainbow.py
index eca57943cb0489f4963f40c5987325f80b502349..bd421d24664cef082e715038b63dcd8fe41182b7 100644
(file)
--- 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,