From edb012e99ff1de8ecf7c188fa69c69933eb199a1 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Thu, 25 Jun 2009 08:15:42 +0500 Subject: stanza_router: Remove unused variables --- core/stanza_router.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'core/stanza_router.lua') diff --git a/core/stanza_router.lua b/core/stanza_router.lua index b00da57b..d1f39733 100644 --- a/core/stanza_router.lua +++ b/core/stanza_router.lua @@ -175,12 +175,8 @@ function core_post_stanza(origin, stanza) 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]; -- cgit v1.2.3