api icon indicating copy to clipboard operation
api copied to clipboard

ROOMSTATE should avoid empty string for certain tags

Open iProdigy opened this issue 5 years ago • 0 comments

Describe the bug fdgt sends:

@emote-only=;followers-only=;r9k=;rituals=;room-id=6210de37-d0b4-457c-b0e1-bd81991bd3b8;slow=;subs-only= :tmi.twitch.tv ROOMSTATE #ogprodigy

Twitch would send:

@emote-only=0;followers-only=-1;r9k=0;rituals=0;room-id=493418343;slow=0;subs-only=0 :tmi.twitch.tv ROOMSTATE #ogprodigy

Some libraries parse tags like followers-only and slow to numbers without checking for an empty string, causing an error to be thrown

To Reproduce Open irc connection and join a channel

Expected behavior If followers-only is disabled, -1 should be sent, not empty string If slow mode is disabled, it would be nice if 0 was sent instead of an empty string etc.

iProdigy avatar Feb 03 '21 19:02 iProdigy