Software /
code /
prosody
Comparison
core/stanza_router.lua @ 105:b099f0f80775
Removed an unnecessary line
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Tue, 14 Oct 2008 09:56:14 +0500 |
parent | 83:79608fc8f98d |
child | 106:f2a3d204a76a |
comparison
equal
deleted
inserted
replaced
104:cfbd3b849f9e | 105:b099f0f80775 |
---|---|
8 local log = require "util.logger".init("stanzarouter") | 8 local log = require "util.logger".init("stanzarouter") |
9 | 9 |
10 local st = require "util.stanza"; | 10 local st = require "util.stanza"; |
11 local send = require "core.sessionmanager".send_to_session; | 11 local send = require "core.sessionmanager".send_to_session; |
12 | 12 |
13 require "util.jid" | 13 local jid_split = require "util.jid".split; |
14 local jid_split = jid.split; | |
15 | 14 |
16 function core_process_stanza(origin, stanza) | 15 function core_process_stanza(origin, stanza) |
17 log("debug", "Received: "..tostring(stanza)) | 16 log("debug", "Received: "..tostring(stanza)) |
18 -- TODO verify validity of stanza (as well as JID validity) | 17 -- TODO verify validity of stanza (as well as JID validity) |
19 if stanza.name == "iq" and not(#stanza.tags == 1 and stanza.tags[1].attr.xmlns) then | 18 if stanza.name == "iq" and not(#stanza.tags == 1 and stanza.tags[1].attr.xmlns) then |