aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/moduleapi.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua
index 071dabc2..870a6a50 100644
--- a/core/moduleapi.lua
+++ b/core/moduleapi.lua
@@ -307,7 +307,7 @@ end
function api:context(host)
- return setmetatable({host=host or "*"}, {__index=self,__newindex=self});
+ return setmetatable({ host = host or "*", global = "*" == host }, { __index = self, __newindex = self });
end
function api:add_item(key, value)