ability to give lists name as switch argument
authorwitti96 <niklas96w@gmail.com>
Sat, 29 Nov 2014 16:26:11 +0000 (17:26 +0100)
committerwitti96 <niklas96w@gmail.com>
Sat, 29 Nov 2014 16:26:11 +0000 (17:26 +0100)
rainbowstream/rainbow.py

index 0bfc2af..7fdab84 100644 (file)
@@ -1314,7 +1314,10 @@ def switch():
             th.start()
         # Stream base on list
         elif target == 'list':
-            owner, slug = get_slug()
+            try:
+                owner, slug = check_slug(g['stuff'].split()[1])
+            except:
+                owner, slug = get_slug()
             # Force python 2 not redraw readline buffer
             listname = '/'.join([owner, slug])
             # Set the listname variable