diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-03-14 21:33:15 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-03-14 21:33:15 +0000 |
commit | 0b6925250291121264bc82a71a0970e2ddc2eab0 (patch) | |
tree | 9fbb755eb5b928dd014f31234368241698dc7866 /core/moduleapi.lua | |
parent | aef2645ec8a90374fdb869aee40bff7c878d34d5 (diff) | |
download | prosody-0b6925250291121264bc82a71a0970e2ddc2eab0.tar.gz prosody-0b6925250291121264bc82a71a0970e2ddc2eab0.zip |
moduleapi: Set module.global = true when module:set_global() is called
Diffstat (limited to 'core/moduleapi.lua')
-rw-r--r-- | core/moduleapi.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua index 7a4d1fa6..b11fd7b3 100644 --- a/core/moduleapi.lua +++ b/core/moduleapi.lua @@ -50,6 +50,7 @@ function api:set_global() 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) |