mumixam / weechat-twitch

Checks status of streams using twitch api
31 stars 9 forks source link

/whois does not work #1

Closed yoosi closed 7 years ago

yoosi commented 7 years ago

Typing /whois [nick] while in channel does not return user info.

The following was sent to the core WeeChat buffer: 15:26 python: stdout/stderr: Traceback (most recent call last): 15:26 python: stdout/stderr: File "/home/yoosi/.weechat/python/autoload/twitch.py", line 127, in channel_api 15:26 python: stdout/stderr: pcolor, pformat, dcolor, ncolor, name, dcolor, ccolor, ul, rul, create) 15:26 python: stdout/stderr: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 3: ordinal not in range(128) 15:26 ! python: error in function "channel_api"

Note: All other Twitch commands appear to work.

I am running WeeChat 1.8

mumixam commented 7 years ago

Does it fail for any nick you try? based on the error im guessing the user you're checking has a display nick that's using utf8. are you able to /whois justin

edit: ok i just tried with a user that has a display nick that is unicode and im getting the same error as you will work on a fix tomorrow thanks for reporting this

mumixam commented 7 years ago

fixed by https://github.com/mumixam/weechat-twitch/commit/aea37d103845c4377046813f76e188644f45d2be