A little whitespace fix
authorWaqas Hussain <waqas20@gmail.com>
Mon, 3 Nov 2008 19:41:40 +0000 (00:41 +0500)
committerWaqas Hussain <waqas20@gmail.com>
Mon, 3 Nov 2008 19:41:40 +0000 (00:41 +0500)
core/stanza_router.lua
main.lua

index 03018c8b0e54e707a020dda4e61cdb676628bb25..4f6918d2baed1feeac427274ef9c7716210ad2ab 100644 (file)
@@ -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);
index e2ac7803856755ece32c9c1205a1ebff2d603caa..939f4512a87dcd4d2a2b9875b61b3e465260ead5 100644 (file)
--- a/main.lua
+++ b/main.lua
@@ -10,12 +10,12 @@ function log(type, area, message)
 end
 
 dofile "lxmppd.cfg"
+
 -- Maps connections to sessions --
 sessions = {};
+
 -- Load and initialise core modules --
+
 require "util.import"
 require "core.xmlhandlers"
 require "core.rostermanager"