Emojicord

Emojicord

769k Downloads

Wrong replacement of emoji while using custom emoji

Ry0taK opened this issue ยท 0 comments

commented

Environment

Forge: 1.12.2-14.23.5.2847
Emojicord: v1.0.2.15
Mods: Emojicord

Step to reproduce

  1. Join FruitServer Discord.
  2. Connect Emojicord to Discord.
  3. Copy :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit:
  4. Paste copied text to chat box and send.
  5. Click up arrow key and send.
  6. Repeat step 4 for 6 times.

Expected result

Same emoji will be shown in chat.

image

Actual result

Wrong emoji is shown.

image

Reason

I think this is because of wrong replacement of emoji in Emojicord.
Emojicord replaces :fruit: to <:fruit:A1M96dlCAAA=>.
If the emoji's internal text reaches the chat length limit, it will be cut off. But, it includes :fruit:.
When we click up arrow key, it automatically loads previous chat history, and Emojicord will replace :fruit: to <:fruit:A1M96dlCAAA=>. It'll append extra < to previous chat history.