fix level check for triggers
This commit is contained in:
parent
1cd1d486de
commit
8233560a3f
|
@ -22,7 +22,7 @@ export default async bot => {
|
||||||
t[1].call.exec(e.message) &&
|
t[1].call.exec(e.message) &&
|
||||||
t[1].clients.includes(e.type) &&
|
t[1].clients.includes(e.type) &&
|
||||||
t[1].active &&
|
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")
|
!((e.self.set !== "all" && e.self.set !== t[1].set) && t[1].set !== "all")
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user