Software /
code /
prosody
Changeset
3874:1488fd9d3fa5
net.xmppserver_listener: Removed unused variables and imports.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 15 Dec 2010 03:53:44 +0500 |
parents | 3873:9bc569083226 |
children | 3875:e83f3728d101 |
files | net/xmppserver_listener.lua |
diffstat | 1 files changed, 2 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/net/xmppserver_listener.lua Wed Dec 15 03:52:56 2010 +0500 +++ b/net/xmppserver_listener.lua Wed Dec 15 03:53:44 2010 +0500 @@ -16,6 +16,8 @@ local logger = require "logger"; local log = logger.init("xmppserver_listener"); local lxp = require "lxp" +local st = require "util.stanza"; +local connlisteners_register = require "net.connlisteners".register; local new_xmpp_stream = require "util.xmppstream".new; local s2s_new_incoming = require "core.s2smanager".new_incoming; local s2s_streamopened = require "core.s2smanager".streamopened; @@ -64,17 +66,6 @@ end end -local connlisteners_register = require "net.connlisteners".register; - -local t_insert = table.insert; -local t_concat = table.concat; -local t_concatall = function (t, sep) local tt = {}; for _, s in ipairs(t) do t_insert(tt, tostring(s)); end return t_concat(tt, sep); end -local m_random = math.random; -local format = string.format; -local sessionmanager = require "core.sessionmanager"; -local sm_new_session, sm_destroy_session = sessionmanager.new_session, sessionmanager.destroy_session; -local st = require "util.stanza"; - local sessions = {}; local xmppserver = { default_port = 5269, default_mode = "*a" };