Merge pull request #156 from Azy8BsKXVko/fix_muting
authorOrakaro <DTVD@users.noreply.github.com>
Tue, 9 Feb 2016 02:00:10 +0000 (11:00 +0900)
committerOrakaro <DTVD@users.noreply.github.com>
Tue, 9 Feb 2016 02:00:10 +0000 (11:00 +0900)
Fixed muting bug

1  2 
rainbowstream/rainbow.py

diff --combined rainbowstream/rainbow.py
@@@ -870,7 -870,7 +870,7 @@@ def mute()
              rel = t.mutes.users.create(screen_name=screen_name[1:])
              if isinstance(rel, dict):
                  printNicely(green(screen_name + ' is muted.'))
-                 c['IGNORE_LIST'] += [unc(screen_name)]
+                 c['IGNORE_LIST'] += [screen_name]
                  c['IGNORE_LIST'] = list(set(c['IGNORE_LIST']))
              else:
                  printNicely(red(rel))
@@@ -1959,6 -1959,8 +1959,6 @@@ def listen()
                  g['prefix'] = False
              else:
                  g['prefix'] = True
 -            # Release the semaphore lock
 -            c['lock'] = False
          except EOFError:
              printNicely('')
          except TwitterHTTPError as e:
          except Exception:
              debug_option()
              printNicely(red('OMG something is wrong with Twitter API right now.'))
 +        finally:
 +            # Release the semaphore lock
 +            c['lock'] = False
  
  
  def reconn_notice():