diff options
author | Waqas Hussain <waqas20@gmail.com> | 2008-11-04 00:41:40 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2008-11-04 00:41:40 +0500 |
commit | a73dd8eabb0d858c9fc54f78a5213874b0eee58d (patch) | |
tree | cec02ab4dc02b6e600732a630492bd98758c49e4 /core/stanza_router.lua | |
parent | eb599a8379ab319218a674b299e455510e2da055 (diff) | |
download | prosody-a73dd8eabb0d858c9fc54f78a5213874b0eee58d.tar.gz prosody-a73dd8eabb0d858c9fc54f78a5213874b0eee58d.zip |
A little whitespace fix
Diffstat (limited to 'core/stanza_router.lua')
-rw-r--r-- | core/stanza_router.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua index 03018c8b..4f6918d2 100644 --- a/core/stanza_router.lua +++ b/core/stanza_router.lua @@ -51,7 +51,7 @@ function core_process_stanza(origin, stanza) if origin.type == "c2s" then stanza.attr.from = origin.full_jid; -- quick fix to prevent impersonation (FIXME this would be incorrect when the origin is not c2s) end - + if not to then core_handle_stanza(origin, stanza); elseif origin.type == "c2s" and stanza.name == "presence" and stanza.attr.type ~= nil and stanza.attr.type ~= "unavailable" then @@ -78,7 +78,7 @@ function core_handle_stanza(origin, stanza) if modules_handle_stanza(origin, stanza) then return; end if origin.type == "c2s" or origin.type == "c2s_unauthed" then local session = origin; - + if stanza.name == "presence" and origin.roster then if stanza.attr.type == nil or stanza.attr.type == "unavailable" then for jid in pairs(origin.roster) do -- broadcast to all interested contacts @@ -260,7 +260,7 @@ end function core_route_stanza(origin, stanza) -- Hooks --- ...later - + -- Deliver local to = stanza.attr.to; local node, host, resource = jid_split(to); |