From 2088ee9da3b7fc37ee2341a466bb2bdf5ac7e5bb Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Wed, 23 May 2012 15:56:13 +0100 Subject: [PATCH] Should be event rather than data. --- modules/js.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/js.js b/modules/js.js index 408a40b..3aee828 100644 --- a/modules/js.js +++ b/modules/js.js @@ -20,7 +20,7 @@ var js = function(dbot) { // Run JS code un-sandboxed, with access to DBot memory (admin-only). '~ajs': function(event) { - if(dbot.admin.include(data.user) ) { + if(dbot.admin.include(event.user) ) { var ret = eval(event.input[1]); if(ret !== undefined) { event.reply(ret);