author | Kim Alvefur <zash@zash.se> |
Wed, 27 Apr 2022 21:12:25 +0200 | |
changeset 12489 | 794f5ec0f347 |
parent 12488 | fb65b5a033b2 (current diff) |
parent 12483 | 4d36fbcdd210 (diff) |
child 12490 | ee93df086926 |
--- 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)