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

feat: support 7TV overrides and emoji-emotes #283

Draft
wants to merge 2 commits into
base: chatterino7
Choose a base branch
from

Conversation

Nerixyz
Copy link
Collaborator

@Nerixyz Nerixyz commented Oct 24, 2024

  • Supports overrides of emotes (technically for any provider, but only 7TV has that feature)
  • Supports emotes with emojis in their name.
    This changes the parsing a bit (for the better, imo), since we parse emojis after emotes now. The next step would be to correctly set the trailing space if an emoji is found in a word (that's for c2 or if users complain).

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

if (state.hasBits && this->tryAppendCheermote(state, word))
{
// This string was parsed as a cheermote
cursor += word.size() + 1;

Choose a reason for hiding this comment

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

warning: narrowing conversion from 'qsizetype' (aka 'long long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions]

rmote
                            ^

if (this->tryAppendEmote(state.twitchChannel, state.userID, {word}))
{
// Successfully appended an emote
cursor += word.size() + 1;

Choose a reason for hiding this comment

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

warning: narrowing conversion from 'qsizetype' (aka 'long long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions]

emote
                            ^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant