The extra comma results in a empty tag. Since every string contains the empty string, King shows up in all categories.
This fix will make sure we discard tags consisting only of whitespace. Additionally, I changed the category filtering to compare the tags to the entire allowed tag. Before, one tag just had to be a substring of the allowed tag for the bot to be shown.
The bot King by CodeRed currently has tags:
The extra comma results in a empty tag. Since every string contains the empty string, King shows up in all categories.
This fix will make sure we discard tags consisting only of whitespace. Additionally, I changed the category filtering to compare the tags to the entire allowed tag. Before, one tag just had to be a substring of the allowed tag for the bot to be shown.