Mercurial > prosody-hg
comparison plugins/mod_presence.lua @ 1210:342f401f354c
mod_presence: Use logger supplied by modulemanager
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 28 May 2009 02:56:13 +0100 |
| parents | 86b01a837126 |
| children | d60e68855176 |
comparison
equal
deleted
inserted
replaced
| 1209:86b01a837126 | 1210:342f401f354c |
|---|---|
| 4 -- | 4 -- |
| 5 -- This project is MIT/X11 licensed. Please see the | 5 -- This project is MIT/X11 licensed. Please see the |
| 6 -- COPYING file in the source package for more information. | 6 -- COPYING file in the source package for more information. |
| 7 -- | 7 -- |
| 8 | 8 |
| 9 | 9 local log = module._log; |
| 10 | |
| 11 local log = require "util.logger".init("mod_presence") | |
| 12 | 10 |
| 13 local require = require; | 11 local require = require; |
| 14 local pairs, ipairs = pairs, ipairs; | 12 local pairs, ipairs = pairs, ipairs; |
| 15 local t_concat = table.concat; | 13 local t_concat = table.concat; |
| 16 local s_find = string.find; | 14 local s_find = string.find; |
