blash/commands/eval.json
2010-12-23 22:39:54 +01:00

26 lines
353 B
JSON

{
"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 '';
},
}