From 0be481f505ae77e8ee86ca23c4648403d1aeda42 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Wed, 12 Oct 2011 16:46:18 +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 3c1fb00..88c3e88 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[1])); + dbot.say(data.channel, eval(q[2])); } };