I am trying to add lunatic mode into one of my plugins but doesn't work and I can't find why. I'm wondering if someone can help me.
First I declare how to put lines inside an empty _customreq.
var args = content.split(" ");
if (args[0].toLowerCase() == "customreq:") {
_customreq = _customreq + content.substring(10) + ' ';
}
Then I place a check if _customreq isn't empty.
if (_customreq != '') {
var custom = true;
eval(_customreq);
return custom;
}
And when I place a code like this:
customreq: custom = false;
It still gives "true" no matter what code I place. I can't find where is the problem.
Does anyone know why?
Can someone solve my problem?
First I declare how to put lines inside an empty _customreq.
var args = content.split(" ");
if (args[0].toLowerCase() == "customreq:") {
_customreq = _customreq + content.substring(10) + ' ';
}
Then I place a check if _customreq isn't empty.
if (_customreq != '') {
var custom = true;
eval(_customreq);
return custom;
}
And when I place a code like this:
customreq: custom = false;
It still gives "true" no matter what code I place. I can't find where is the problem.
Does anyone know why?
Can someone solve my problem?