Message editing should perform validation
When an admin edits a message, the following conditions should be checked:
- Channel is lowercase, is >=4 & <=26 characters (the shortest possible usernames are 3; #+3=4, max 25, #+25=26; DB is setup with channel being type string, which is 256 characters, so it could be increased in a configuration file) and has "#" prepended
- Sender is lowercase alphanumeric (aliases with non-ANSI characters should be rejected) and >=3 & <256 characters (Twitch usernames are 3-25 characters)
- Message length is > 0 and <= 500 characters (Twitch uses characters instead of bytes, so you can have 500 emojis taking 4 bytes each. I've done testing and confirmed Ruby handles emoji length properly. I set message to be type text, which is theoretically unlimited.)
- Date does not fall after the current system time in GMT
- Justification has a non-0 length (will be type string, max 255 characters, when I setup the DB for this.)
Edited by Luna Lucadou