added support for "open" follow https:// links
[rainbowstream.git] / rainbowstream / rainbow.py
index 8d930847c8887e5ab7ebc2f54eaea0fb4ade1676..5542ca7ba6947184fd0af8183471095df9f94d02 100644 (file)
@@ -122,7 +122,7 @@ def init(args):
     name = credential['name']
     if not get_config('PREFIX'):
         set_config('PREFIX', screen_name)
-    g['original_name'] = screen_name[1:]
+    c['original_name'] = g['original_name'] = screen_name[1:]
     g['full_name'] = name
     g['decorated_name'] = lambda x: color_func(
         c['DECORATED_NAME'])('[' + x + ']: ')
@@ -463,6 +463,8 @@ def urlopen():
         tweet = t.statuses.show(id=tid)
         link_ary = [
             u for u in tweet['text'].split() if u.startswith('http://')]
+        link_ary.extend([
+            u for u in tweet['text'].split() if u.startswith('https://')])
         if not link_ary:
             printNicely(light_magenta('No url here @.@!'))
             return