Comparison

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
comparison
equal deleted inserted replaced
4604:eef5e3a83792 4605:69746db53125
48 self.host = "*"; 48 self.host = "*";
49 -- Update the logger 49 -- Update the logger
50 local _log = logger.init("mod_"..self.name); 50 local _log = logger.init("mod_"..self.name);
51 self.log = function (self, ...) return _log(...); end; 51 self.log = function (self, ...) return _log(...); end;
52 self._log = _log; 52 self._log = _log;
53 self.global = true;
53 end 54 end
54 55
55 function api:add_feature(xmlns) 56 function api:add_feature(xmlns)
56 self:add_item("feature", xmlns); 57 self:add_item("feature", xmlns);
57 end 58 end