-
-
Notifications
You must be signed in to change notification settings - Fork 101
Closed
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomershelp wantedpriority: low
Description
Describe the bug
You can easily farm Top-Helper message points by adding thousands of Zero Width Joiner
s (invisible characters) to your help messages and boost yourself up the Top-Helper list.
Expected behavior
Unwanted characters should not increase the message points
To Reproduce
- Go to https://emojipedia.org/zero-width-joiner/ and copy the character
- Write a help message and add the character until you reach the message limit
- Take a look at the
help_channel_messages
database table - => The message length is 2000
Screenshots
after a few messages
Fix
We can just adjust the value put into the database at TopHelpersMessageListener
:
to not use just .length()
, but ignore any fancy character. It is probably okay if we just count a-zA-Z0-9
or similar.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomershelp wantedpriority: low