Strip leading @ from usernames in the /block and /unblock commands (#3816)

Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com>
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
Brian 2022-06-18 07:18:51 -04:00 committed by GitHub
parent 81caf1aae0
commit fd87cbb626
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -10,6 +10,7 @@
- Minor: Add information about the user's operating system in the About page. (#3663)
- Minor: Added chatter count for each category in viewer list. (#3683, #3719)
- Minor: Sorted usernames in /vips message to be case-insensitive. (#3696)
- Minor: Strip leading @ and trailing , from usernames in the `/block` and `/unblock` commands. (#3816)
- Minor: Added option to open a user's chat in a new tab from the usercard profile picture context menu. (#3625)
- Minor: Fixed tag parsing for consecutive escaped characters. (#3711)
- Minor: Prevent user from entering incorrect characters in Live Notifications channels list. (#3715, #3730)

View file

@ -334,6 +334,7 @@ void CommandController::initialize(Settings &, Paths &paths)
}
auto target = words.at(1);
stripChannelName(target);
getHelix()->getUserByName(
target,
@ -379,6 +380,7 @@ void CommandController::initialize(Settings &, Paths &paths)
}
auto target = words.at(1);
stripChannelName(target);
getHelix()->getUserByName(
target,