# HG changeset patch # User Waqas Hussain # Date 1245899742 -18000 # Node ID b12096b69f364b6a15751f1308403445cc36c1ae # Parent b71a9e29adc3662f887d1cc1d189c7b2d5d48bd5 stanza_router: Remove unused variables diff -r b71a9e29adc3 -r b12096b69f36 core/stanza_router.lua --- a/core/stanza_router.lua Thu Jun 25 08:13:21 2009 +0500 +++ b/core/stanza_router.lua Thu Jun 25 08:15:42 2009 +0500 @@ -175,12 +175,8 @@ end function core_route_stanza(origin, stanza) - local to = stanza.attr.to; - local node, host, resource = jid_split(to); - local to_bare = node and (node.."@"..host) or host; -- bare JID - local from = stanza.attr.from; - local from_node, from_host, from_resource = jid_split(from); - local from_bare = from_node and (from_node.."@"..from_host) or from_host; -- bare JID + local node, host, resource = jid_split(stanza.attr.to); + local from_node, from_host, from_resource = jid_split(stanza.attr.from); -- Auto-detect origin if not specified origin = origin or hosts[from_host];