From e0fdebe6df26b3b7612022815454f750b545dfb8 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Wed, 12 Oct 2011 16:45:43 +0100 Subject: [PATCH] js --- modules/js.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/js.js b/modules/js.js index a6ef0b3..3c1fb00 100644 --- a/modules/js.js +++ b/modules/js.js @@ -4,7 +4,7 @@ var js = function(dbot) { var commands = { '~js': function(data, params) { var q = data.message.valMatch(/^~js ([\d\w\s]*)/, 2); - dbot.say(data.channel, eval(q)); + dbot.say(data.channel, eval(q[1])); } };