diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-06-25 08:15:42 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-06-25 08:15:42 +0500 |
commit | edb012e99ff1de8ecf7c188fa69c69933eb199a1 (patch) | |
tree | cd6ee1cfe89b50de47b37a79076fe61a2d23f9f2 | |
parent | b5c58a84a12aa8b0164a8ecc0d60827e465ad9f1 (diff) | |
download | prosody-edb012e99ff1de8ecf7c188fa69c69933eb199a1.tar.gz prosody-edb012e99ff1de8ecf7c188fa69c69933eb199a1.zip |
stanza_router: Remove unused variables
-rw-r--r-- | core/stanza_router.lua | 8 |
1 files changed, 2 insertions, 6 deletions
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]; |