Changeset

4605:69746db53125

moduleapi: Set module.global = true when module:set_global() is called
author Matthew Wild <mwild1@gmail.com>
date Wed, 14 Mar 2012 21:33:15 +0000
parents 4604:eef5e3a83792
children 4606:17785dbd9d58
files core/moduleapi.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)