switchOnMsgID

Switches on a message ID string and resolves the type of an IRCEvent.

Broken out of parseTwitchTags for readability.

version(TwitchSupport)
private @safe
void
switchOnMsgID
(,
const string msgID
,
const bool onlySetType
)

Parameters

event IRCEvent

The IRCEvent to resolve the type of.

msgID string

The message ID string to switch on.

onlySetType bool

Whether or not to only set the type of the IRCEvent; if false, more information is set in the IRCEvent.