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])); } };