fix level check for triggers

This commit is contained in:
Flummi 2019-08-19 04:23:12 +02:00
parent 1cd1d486de
commit 8233560a3f

View File

@ -22,7 +22,7 @@ export default async bot => {
t[1].call.exec(e.message) &&
t[1].clients.includes(e.type) &&
t[1].active &&
!(t[1].level > getLevel(e.network, e.user)) &&
t[1].level <= getLevel(e.network, e.user).level &&
!((e.self.set !== "all" && e.self.set !== t[1].set) && t[1].set !== "all")
);