Diff

core/moduleapi.lua @ 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
parent 4539:3cbfa768eb06
child 4613:27fbc9c69eb5
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)