# HG changeset patch # User Waqas Hussain # Date 1225741300 -18000 # Node ID 90c38788423477ec5d109b1e315b24ca0c5ba543 # Parent e30d0e30a0ff829b5059ef8cfa847e912b29a111 A little whitespace fix diff -r e30d0e30a0ff -r 90c387884234 core/stanza_router.lua --- a/core/stanza_router.lua Mon Nov 03 07:50:09 2008 +0500 +++ b/core/stanza_router.lua Tue Nov 04 00:41:40 2008 +0500 @@ -51,7 +51,7 @@ 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 @@ 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 @@ function core_route_stanza(origin, stanza) -- Hooks --- ...later - + -- Deliver local to = stanza.attr.to; local node, host, resource = jid_split(to); diff -r e30d0e30a0ff -r 90c387884234 main.lua --- a/main.lua Mon Nov 03 07:50:09 2008 +0500 +++ b/main.lua Tue Nov 04 00:41:40 2008 +0500 @@ -10,12 +10,12 @@ end dofile "lxmppd.cfg" - + -- Maps connections to sessions -- sessions = {}; - + -- Load and initialise core modules -- - + require "util.import" require "core.xmlhandlers" require "core.rostermanager"