diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-05-15 06:34:08 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-05-15 06:34:08 +0500 |
commit | 669916fb93d1cbd6570e515290a7d3c934bd17b1 (patch) | |
tree | 94e94add07c65dd67739fcc71d8327bd5f962c4a /core | |
parent | d996755860a82374cccae4972a1b40cb295792ad (diff) | |
download | prosody-669916fb93d1cbd6570e515290a7d3c934bd17b1.tar.gz prosody-669916fb93d1cbd6570e515290a7d3c934bd17b1.zip |
stanza_router: Remove unnecessary directed presence handling
Diffstat (limited to 'core')
-rw-r--r-- | core/stanza_router.lua | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua index cb76b29c..43ba4547 100644 --- a/core/stanza_router.lua +++ b/core/stanza_router.lua @@ -117,11 +117,6 @@ function core_process_stanza(origin, stanza) return; -- FIXME what should we do here? does this work with subdomains? end end - if origin.type == "c2s" and stanza.name == "presence" and to ~= nil and not(origin.roster[to_bare] and (origin.roster[to_bare].subscription == "both" or origin.roster[to_bare].subscription == "from")) then -- directed presence - origin.directed = origin.directed or {}; - origin.directed[to] = true; - --t_insert(origin.directed, to); -- FIXME does it make more sense to add to_bare rather than to? - end if not to then core_handle_stanza(origin, stanza); elseif hosts[to] and hosts[to].type == "local" then -- directed at a local server |