# HG changeset patch # User Kim Alvefur # Date 1651086745 -7200 # Node ID 794f5ec0f347de1bc54c5ec7cb22c01267107b88 # Parent fb65b5a033b2e5aba051ae63c29a89b7964a8600# Parent 4d36fbcdd210ba8342eff1b9d58c8c1c629d00e1 Merge 0.12->trunk diff -r fb65b5a033b2 -r 794f5ec0f347 core/moduleapi.lua --- a/core/moduleapi.lua Fri Sep 17 21:43:54 2021 +0200 +++ b/core/moduleapi.lua Wed Apr 27 21:12:25 2022 +0200 @@ -307,7 +307,7 @@ 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)