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 9b1004f..1b5ee1d 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