mirror of
https://github.com/thedevs-network/the-guard-bot
synced 2025-08-31 06:05:22 +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
|
||||
storedUser &&
|
||||
newUser &&
|
||||
(storedUser.username !== newUser.username.toLowerCase() ||
|
||||
(storedUser.username !== newUser.username ||
|
||||
!storedUser.first_name)
|
||||
) {
|
||||
usersToAdd.push(addUser(newUser));
|
||||
|
Reference in New Issue
Block a user