Software /
code /
prosody
Comparison
core/moduleapi.lua @ 6656:58c111a39d27
moduleapi: Add luacheck annotation
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 06 May 2015 19:02:44 +0100 |
parent | 6655:a99ed5f5f709 |
child | 6659:0a494394cd3e |
comparison
equal
deleted
inserted
replaced
6655:a99ed5f5f709 | 6656:58c111a39d27 |
---|---|
53 | 53 |
54 function api:set_global() | 54 function api:set_global() |
55 self.host = "*"; | 55 self.host = "*"; |
56 -- Update the logger | 56 -- Update the logger |
57 local _log = logger.init("mod_"..self.name); | 57 local _log = logger.init("mod_"..self.name); |
58 self.log = function (self, ...) return _log(...); end; | 58 self.log = function (self, ...) return _log(...); end; --luacheck: ignore self |
59 self._log = _log; | 59 self._log = _log; |
60 self.global = true; | 60 self.global = true; |
61 end | 61 end |
62 | 62 |
63 function api:add_feature(xmlns) | 63 function api:add_feature(xmlns) |