Software /
code /
prosody
Changeset
1411:b12096b69f36
stanza_router: Remove unused variables
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 25 Jun 2009 08:15:42 +0500 |
parents | 1410:b71a9e29adc3 |
children | 1412:6cfcab7cd4e7 |
files | core/stanza_router.lua |
diffstat | 1 files changed, 2 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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];