aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-04-27 21:12:25 +0200
committerKim Alvefur <zash@zash.se>2022-04-27 21:12:25 +0200
commitedb490504d310913a88941a1ac3a1ebdcff0aa32 (patch)
treeceeaf67d8d7a593767203687a9f1f049e911a4b8 /core
parent84d748f94d6a94e9caf165661692770ea11e0e4e (diff)
parent9e5bf4fc486527b33244ff2f929d8bfb7472d323 (diff)
downloadprosody-edb490504d310913a88941a1ac3a1ebdcff0aa32.tar.gz
prosody-edb490504d310913a88941a1ac3a1ebdcff0aa32.zip
Merge 0.12->trunk
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)