3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-23 20:39:25 +01:00

Should be event rather than data.

This commit is contained in:
Luke Slater 2012-05-23 15:56:13 +01:00
parent 6c7fc838d4
commit 2088ee9da3

View File

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