discord-csharp / MODiX

Discord Bot handling basic moderation needs, soon implements statistics.
MIT License
115 stars 63 forks source link

Quote service does not properly handle braces if there is prelink content #978

Closed MangoDevx closed 1 year ago

MangoDevx commented 1 year ago

In Services/Quote/MessagingLinkBehavior.cs line 67 is a problem with brace checking if prelink content exists. Linked is a PR to this issue which contains a fix by checking the prelink content suffix. A Regex solution may be more suitable with the design. PR ref: #979.

Example: Hey! \<message link>

Expected Behavior: Modix ignores and does not embed

Actual Behavior: Modix posts an embded to the message at the message link

Scott-Caldwell commented 1 year ago

Fixed in #979