Fix a bug of not being able to specify filter nick in Python 3
authorvunhat_minh <vunhat_minh@dwango.co.jp>
Wed, 31 Aug 2016 02:15:34 +0000 (11:15 +0900)
committervunhat_minh <vunhat_minh@dwango.co.jp>
Wed, 31 Aug 2016 02:15:34 +0000 (11:15 +0900)
rainbowstream/rainbow.py

index 9b1004f20564bf20222aca219d5c4f3dffd62b5f..1b5ee1d98ff8c2cff2e1700b59a7fd96a0aaff90 100644 (file)
@@ -1389,8 +1389,8 @@ def switch():
                 printNicely(light_magenta(guide))
                 only = raw_input('Only nicks [Ex: @xxx,@yy]: ')
                 ignore = raw_input('Ignore nicks [Ex: @xxx,@yy]: ')
-                args.filter = filter(None, only.split(','))
-                args.ignore = filter(None, ignore.split(','))
+                args.filter = list(filter(None, only.split(',')))
+                args.ignore = list(filter(None, ignore.split(',')))
         except:
             printNicely(red('Sorry, wrong format.'))
             return