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 | 2c3103e84ae364bc20782575a8113c9b96c1cbd7 (patch) | |
tree | 9fbb755eb5b928dd014f31234368241698dc7866 /core/moduleapi.lua | |
parent | 121a7f3acddc52eb911688b5f23d3efee9178ea5 (diff) | |
download | prosody-2c3103e84ae364bc20782575a8113c9b96c1cbd7.tar.gz prosody-2c3103e84ae364bc20782575a8113c9b96c1cbd7.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) |