blash/commands/eval.json

27 lines
353 B
JSON
Raw Normal View History

{
"name" : "eval",
"info" : {
"syntax" : "eval <javascript expression>",
"brief" : "Executes a certain JavaScript expression",
},
"action" : function ( arg )
{
var out = '';
if ( !arg || arg.length == 0 )
{
return "Argument required<br/>\n";
}
out = eval ( arg );
if ( out )
return out;
else
return '';
},
}