Skip to content

ROOMSTATE should avoid empty string for certain tags #172

@iProdigy

Description

@iProdigy

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions