Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix private message parsing when there is no colon prefix #5

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

kevinrpb
Copy link
Contributor

@kevinrpb kevinrpb commented Sep 9, 2024

Hi there!

I was trying to use TwitchIRC to parse messages from recent-messages and found an uncovered case, so here's a fix and a new test.

In summary, the spec doesn't require a colon (:) in the message, so whenever it's not present TwitchIRC was removing the first character of the message. In my case, I found this because it broke the emote indexes in the message.

Let me know if you have any concerns about the change 😄

PS: Failing workflows seem unrelated.

Copy link
Owner

@MahdiBM MahdiBM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, Looks good to me. Thanks for the test as well.

@MahdiBM
Copy link
Owner

MahdiBM commented Sep 13, 2024

The CI failures are unrelated, optimally I should just drop support for those older Swift versions.

@MahdiBM MahdiBM merged commit 194e122 into MahdiBM:main Sep 13, 2024
7 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants