This code definitely smells. So you have multiple conditions that are all mutually exclusive, but not similar enough that you can't just use a regular switch?
In any case, that's not what switch is for. If-else that stuff. Or, even better in this case, just if's because return ends control flow anyways.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This code definitely smells. So you have multiple conditions that are all mutually exclusive, but not similar enough that you can't just use a regular switch?
In any case, that's not what switch is for. If-else that stuff. Or, even better in this case, just if's because return ends control flow anyways.