Open aetaric opened 6 years ago
I built a new regex. Looks like it's working. Could you test it with some other messages? :)
Not sure if that regex is used to parse the messages on login, but the bot is no longer joining channels or requesting caps with that regex in place.
Pretty sure I've fixed it here: craysiii@72c3ee6bcba3b801b9b1aea9853574d1183cd6fb
Not sure if I should make a pull request, haven't tested it on a "normal" IRC network.
Confirmed working on Twitch.
It looks like the regex on line 100 of lib/cinch/message.rb is broken for twitch IRCv3 when emotes are used in the message:
Example message that breaks the regex:
@badges=moderator/1,subscriber/24,bits/50000;color=#D63F50;display-name=CyclopsDragon;emotes=15017:11-16;id=e4964802-5310-449d-b8f1-52be38ff1d26;mod=1;room-id=21836069;sent-ts=1502929472853;subscriber=1;tmi-sent-ts=1502929475647;turbo=0;user-id=6342406;user-type=mod :cyclopsdragon!cyclopsdragon@cyclopsdragon.tmi.twitch.tv PRIVMSG #geoff :hi gibeDu
On Twitch's IRC the emotes tag will contain a colon which breaks the regex preventing the message from being parsed.