gardenshade / mam-plus

Tweaks & functionality for MAM
83 stars 6 forks source link

[Bug] Smiley-only shouts still styled when quoted despite being null #175

Closed gardenshade closed 3 years ago

gardenshade commented 3 years ago

Description:

Smilies are unquotable using the QuickQuote feature. When someone posts a shout that contains only smilies and that post is then quoted by another user, the quoted message starts with @name: [i][/i] instead of @name:

Walkthrough:

Steps to reproduce the behavior:

  1. Find or post a message that contains only a smiley
  2. QuickQuote the message

Expected Behavior:

When processing the shout, if all nodes end up being "empty" as far as the script is concerned we should not append additional style tags.