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