This commit is contained in:
Luke Slater 2011-10-12 16:47:56 +01:00
parent 0be481f505
commit 421037d215

View File

@ -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[2]));
dbot.say(data.channel, eval(q[1]));
}
};