aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-03-14 21:33:15 +0000
committerMatthew Wild <mwild1@gmail.com>2012-03-14 21:33:15 +0000
commit0b6925250291121264bc82a71a0970e2ddc2eab0 (patch)
tree9fbb755eb5b928dd014f31234368241698dc7866 /core
parentaef2645ec8a90374fdb869aee40bff7c878d34d5 (diff)
downloadprosody-0b6925250291121264bc82a71a0970e2ddc2eab0.tar.gz
prosody-0b6925250291121264bc82a71a0970e2ddc2eab0.zip
moduleapi: Set module.global = true when module:set_global() is called
Diffstat (limited to 'core')
-rw-r--r--core/moduleapi.lua1
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)