# HG changeset patch # User Matthew Wild # Date 1331760795 0 # Node ID 69746db53125b6e39362512546ce77758d466c9c # Parent eef5e3a837925942037196a70146bf6131ff8ed6 moduleapi: Set module.global = true when module:set_global() is called diff -r eef5e3a83792 -r 69746db53125 core/moduleapi.lua --- a/core/moduleapi.lua Wed Mar 14 17:03:48 2012 +0000 +++ b/core/moduleapi.lua Wed Mar 14 21:33:15 2012 +0000 @@ -50,6 +50,7 @@ local _log = logger.init("mod_"..self.name); self.log = function (self, ...) return _log(...); end; self._log = _log; + self.global = true; end function api:add_feature(xmlns)