Fixed /warn

This commit is contained in:
Nefrace 2021-03-22 19:37:25 +03:00
parent bbd45a77df
commit 8c4dd1c36a
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ bot.onText(/^\/warn/, async(msg, match) => {
if(to.id == me.id) {
return
}
if (user.uid === msg.from.id) {
if (to.id === msg.from.id) {
return
}
const warns = await Warning.find({user: to.id, chat: msg.chat.id, active: true})