eval: hacky args removal
This commit is contained in:
parent
43461f6627
commit
3502dfe47a
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ _eval.callback = async function (msg, line, args, {depth = 0}) {
|
||||||
let errored = false;
|
let errored = false;
|
||||||
let out;
|
let out;
|
||||||
|
|
||||||
const code = args.join(" ");
|
const code = line.replace(/--depth=\d+\s+/, "");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
out = eval(code);
|
out = eval(code);
|
||||||
|
|
Loading…
Reference in a new issue