Comparison

core/stanza_router.lua @ 5776:bd0ff8ae98a8

Remove all trailing whitespace
author Florian Zeitz <florob@babelmonkeys.de>
date Fri, 09 Aug 2013 17:48:21 +0200
parent 5012:d59c842fe38e
child 6402:b058486e6a79
comparison
equal deleted inserted replaced
5775:a6c2b8933507 5776:bd0ff8ae98a8
1 -- Prosody IM 1 -- Prosody IM
2 -- Copyright (C) 2008-2010 Matthew Wild 2 -- Copyright (C) 2008-2010 Matthew Wild
3 -- Copyright (C) 2008-2010 Waqas Hussain 3 -- Copyright (C) 2008-2010 Waqas Hussain
4 -- 4 --
5 -- This project is MIT/X11 licensed. Please see the 5 -- This project is MIT/X11 licensed. Please see the
6 -- COPYING file in the source package for more information. 6 -- COPYING file in the source package for more information.
7 -- 7 --
8 8
9 local log = require "util.logger".init("stanzarouter") 9 local log = require "util.logger".init("stanzarouter")
194 local from_node, from_host, from_resource = jid_split(stanza.attr.from); 194 local from_node, from_host, from_resource = jid_split(stanza.attr.from);
195 195
196 -- Auto-detect origin if not specified 196 -- Auto-detect origin if not specified
197 origin = origin or hosts[from_host]; 197 origin = origin or hosts[from_host];
198 if not origin then return false; end 198 if not origin then return false; end
199 199
200 if hosts[host] then 200 if hosts[host] then
201 -- old stanza routing code removed 201 -- old stanza routing code removed
202 core_post_stanza(origin, stanza); 202 core_post_stanza(origin, stanza);
203 else 203 else
204 log("debug", "Routing to remote..."); 204 log("debug", "Routing to remote...");