checks: fix bug on channel type restrictions

This commit is contained in:
Luna 2019-02-16 21:17:08 -03:00
parent 3247323a95
commit cae72fb951
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ async def channel_check(user_id, channel_id, *,
ctype = ChannelType(chan_type)
if not isinstance(only, list):
if only and not isinstance(only, list):
only = [only]
if only and ctype not in only: