diff options
author | Kim Alvefur <zash@zash.se> | 2022-04-27 21:12:25 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2022-04-27 21:12:25 +0200 |
commit | edb490504d310913a88941a1ac3a1ebdcff0aa32 (patch) | |
tree | ceeaf67d8d7a593767203687a9f1f049e911a4b8 /core | |
parent | 84d748f94d6a94e9caf165661692770ea11e0e4e (diff) | |
parent | 9e5bf4fc486527b33244ff2f929d8bfb7472d323 (diff) | |
download | prosody-edb490504d310913a88941a1ac3a1ebdcff0aa32.tar.gz prosody-edb490504d310913a88941a1ac3a1ebdcff0aa32.zip |
Merge 0.12->trunk
Diffstat (limited to 'core')
-rw-r--r-- | core/moduleapi.lua | 2 |
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) |