mirror of
https://github.com/thedevs-network/the-guard-bot
synced 2025-09-03 23:55:15 +00:00
fixed checking if usernames match
This commit is contained in:
@@ -32,7 +32,7 @@ const addUserHandler = async (ctx, next) => {
|
|||||||
// if user's data is incomplete or is changed
|
// if user's data is incomplete or is changed
|
||||||
storedUser &&
|
storedUser &&
|
||||||
newUser &&
|
newUser &&
|
||||||
(storedUser.username !== newUser.username.toLowerCase() ||
|
(storedUser.username !== newUser.username ||
|
||||||
!storedUser.first_name)
|
!storedUser.first_name)
|
||||||
) {
|
) {
|
||||||
usersToAdd.push(addUser(newUser));
|
usersToAdd.push(addUser(newUser));
|
||||||
|
Reference in New Issue
Block a user