111 end, |
111 end, |
112 __newindex = function (t, k, v) |
112 __newindex = function (t, k, v) |
113 set(env.__currenthost or "*", "core", k, v); |
113 set(env.__currenthost or "*", "core", k, v); |
114 end}); |
114 end}); |
115 |
115 |
|
116 rawset(env, "__currenthost", "*") -- Default is global |
116 function env.Host(name) |
117 function env.Host(name) |
117 rawset(env, "__currenthost", name); |
118 rawset(env, "__currenthost", name); |
118 -- Needs at least one setting to logically exist :) |
119 -- Needs at least one setting to logically exist :) |
119 set(name or "*", "core", "defined", true); |
120 set(name or "*", "core", "defined", true); |
120 end |
121 end |