Fixed /warn
This commit is contained in:
		
							
								
								
									
										2
									
								
								index.js
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								index.js
									
									
									
									
									
								
							@ -133,7 +133,7 @@ bot.onText(/^\/warn/, async(msg, match) => {
 | 
				
			|||||||
        if(to.id == me.id) {
 | 
					        if(to.id == me.id) {
 | 
				
			||||||
            return
 | 
					            return
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        if (user.uid === msg.from.id) {
 | 
					        if (to.id === msg.from.id) {
 | 
				
			||||||
            return
 | 
					            return
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        const warns = await Warning.find({user: to.id, chat: msg.chat.id, active: true})
 | 
					        const warns = await Warning.find({user: to.id, chat: msg.chat.id, active: true})
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user