changeset 5526 | d54011a23b20 |
parent 5498 | 2a67235e1d4d |
child 5527 | 7e7f45f587a1 |
--- a/core/moduleapi.lua Sat Apr 27 13:11:03 2013 +0100 +++ b/core/moduleapi.lua Sat Apr 27 14:57:24 2013 +0100 @@ -270,6 +270,10 @@ return set.new(value); end +function api:context(host) + return setmetatable({host=host or "*"}, {__index=self,__newindex=self}); +end + function api:add_item(key, value) self.items = self.items or {}; self.items[key] = self.items[key] or {};