From bc4dfb000389c2f5f4412009766638d92d75863d Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Mon, 13 Feb 2012 20:17:24 +0000 Subject: [PATCH] use sandbox module for running untrusted code because it has a timeout --- modules/js.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/js.js b/modules/js.js index 00fbc67..6069b0c 100644 --- a/modules/js.js +++ b/modules/js.js @@ -3,7 +3,7 @@ var sandbox = require('sandbox'); var js = function(dbot) { var dbot = dbot; - var s = sandbox.Sandbox(); + var s = new Sandbox(); var commands = { '~js': function(data, params) {