Software /
code /
prosody
Comparison
plugins/mod_dialback.lua @ 1070:3b066968063b
mod_dialback: Use module logger instead of creating a new one
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 30 Apr 2009 01:37:52 +0100 |
parent | 1065:3806173670f2 |
child | 1077:d6a885cacd8c |
comparison
equal
deleted
inserted
replaced
1069:034e345c0f8d | 1070:3b066968063b |
---|---|
11 local send_s2s = require "core.s2smanager".send_to_host; | 11 local send_s2s = require "core.s2smanager".send_to_host; |
12 local s2s_make_authenticated = require "core.s2smanager".make_authenticated; | 12 local s2s_make_authenticated = require "core.s2smanager".make_authenticated; |
13 local s2s_verify_dialback = require "core.s2smanager".verify_dialback; | 13 local s2s_verify_dialback = require "core.s2smanager".verify_dialback; |
14 local s2s_destroy_session = require "core.s2smanager".destroy_session; | 14 local s2s_destroy_session = require "core.s2smanager".destroy_session; |
15 | 15 |
16 local log = module._log; | |
17 | |
16 local st = require "util.stanza"; | 18 local st = require "util.stanza"; |
17 | |
18 local log = require "util.logger".init("mod_dialback"); | |
19 | 19 |
20 local xmlns_dialback = "jabber:server:dialback"; | 20 local xmlns_dialback = "jabber:server:dialback"; |
21 | 21 |
22 local dialback_requests = setmetatable({}, { __mode = 'v' }); | 22 local dialback_requests = setmetatable({}, { __mode = 'v' }); |
23 | 23 |