non leaders cant click on settings anymore

This commit is contained in:
Miodec 2021-02-05 19:32:42 +00:00
parent 7f8e04d79d
commit 249bf519d4

View file

@ -1559,13 +1559,15 @@ $(document).on(
"click",
".pageTribe .lobby .currentSettings .groups .group",
(e) => {
let commands = eval($(e.currentTarget).attr("commands"));
let func = $(e.currentTarget).attr("function");
if (commands != undefined) {
currentCommands.push(commands);
showCommandLine();
} else if (func != undefined) {
eval(func);
if (MP.room.isLeader) {
let commands = eval($(e.currentTarget).attr("commands"));
let func = $(e.currentTarget).attr("function");
if (commands != undefined) {
currentCommands.push(commands);
showCommandLine();
} else if (func != undefined) {
eval(func);
}
}
}
);