aboutsummaryrefslogtreecommitdiff
path: root/core.moon
diff options
context:
space:
mode:
Diffstat (limited to 'core.moon')
-rwxr-xr-xcore.moon2
1 files changed, 1 insertions, 1 deletions
diff --git a/core.moon b/core.moon
index 4c84f66..bb4ba50 100755
--- a/core.moon
+++ b/core.moon
@@ -71,7 +71,7 @@ g\def {"restrict %fn to %whitelist"}, (vars)=>
unless self\check_permission(fn)
print "You do not have permission to restrict function: #{fn}"
continue
- @defs[fn] = whitelist
+ @defs[fn].whitelist = whitelist
g\def {"allow %whitelist to %fn"}, (vars)=>
fns = if type(vars.fn) == 'string' then {vars.fn} else vars.fn