Changeset

12485:794f5ec0f347

Merge 0.12->trunk
author Kim Alvefur <zash@zash.se>
date Wed, 27 Apr 2022 21:12:25 +0200
parents 12484:fb65b5a033b2 (current diff) 12479:4d36fbcdd210 (diff)
children 12486:ee93df086926
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)