From 8c4dd1c36a98414f77bb1a96c6ab96d575a6d0d6 Mon Sep 17 00:00:00 2001 From: Nefrace Date: Mon, 22 Mar 2021 19:37:25 +0300 Subject: [PATCH] Fixed /warn --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 466c3d1..e5bf4f6 100644 --- a/index.js +++ b/index.js @@ -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})