tmi.js icon indicating copy to clipboard operation
tmi.js copied to clipboard

IRC tags with a value of 0 or 1 are ALWAYS converted to a boolean

Open kesor opened this issue 5 years ago • 0 comments

https://github.com/tmijs/tmi.js/blob/ddced239bfce21a7618f8655b827cb52a78acd8e/lib/client.js#L92-L105

In some cases the original tag value is an actual integer, not a boolean. For example a resubscribe for 1 cumulative months. This is returned as a true value, which is surprising.

kesor avatar May 06 '20 14:05 kesor