2
0
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:
Pouria Ezzati
2017-11-23 22:19:07 +03:30
parent dabe672fa8
commit f230d0497a

View File

@@ -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));