mirror of
https://github.com/reality/dbot.git
synced 2024-12-24 19:52:36 +01:00
Should be event rather than data.
This commit is contained in:
parent
6c7fc838d4
commit
2088ee9da3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user