Software /
code /
prosody
Comparison
core/stanza_router.lua @ 1358:71fbf8a52dcf
stanza_router: Remove unused variables
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sun, 14 Jun 2009 18:21:19 +0500 |
parent | 1356:b760c0d4e012 |
child | 1367:e4d660e58dfc |
comparison
equal
deleted
inserted
replaced
1357:5e4e448a99f7 | 1358:71fbf8a52dcf |
---|---|
15 local st = require "util.stanza"; | 15 local st = require "util.stanza"; |
16 local send_s2s = require "core.s2smanager".send_to_host; | 16 local send_s2s = require "core.s2smanager".send_to_host; |
17 local user_exists = require "core.usermanager".user_exists; | 17 local user_exists = require "core.usermanager".user_exists; |
18 | 18 |
19 local rostermanager = require "core.rostermanager"; | 19 local rostermanager = require "core.rostermanager"; |
20 local sessionmanager = require "core.sessionmanager"; | |
21 local offlinemanager = require "core.offlinemanager"; | 20 local offlinemanager = require "core.offlinemanager"; |
22 | 21 |
23 local modules_handle_stanza = require "core.modulemanager".handle_stanza; | 22 local modules_handle_stanza = require "core.modulemanager".handle_stanza; |
24 local component_handle_stanza = require "core.componentmanager".handle_stanza; | 23 local component_handle_stanza = require "core.componentmanager".handle_stanza; |
25 | 24 |
26 local format = string.format; | |
27 local tostring = tostring; | 25 local tostring = tostring; |
28 local t_concat = table.concat; | |
29 local t_insert = table.insert; | 26 local t_insert = table.insert; |
30 local tonumber = tonumber; | |
31 local s_find = string.find; | |
32 local pairs = pairs; | 27 local pairs = pairs; |
33 local ipairs = ipairs; | 28 local ipairs = ipairs; |
34 | 29 |
35 local jid_split = require "util.jid".split; | 30 local jid_split = require "util.jid".split; |
36 local jid_prepped_split = require "util.jid".prepped_split; | 31 local jid_prepped_split = require "util.jid".prepped_split; |
37 local print = print; | |
38 local fire_event = prosody.events.fire_event; | 32 local fire_event = prosody.events.fire_event; |
39 | 33 |
40 local select_best_resources; | 34 local select_best_resources; |
41 | 35 |
42 function core_process_stanza(origin, stanza) | 36 function core_process_stanza(origin, stanza) |