Software / code / prosody
Comparison
core/presencemanager.lua @ 780:4417ab6ccc20
Fixed directed presence handling to work correctly for components
| author | Waqas Hussain <waqas20@gmail.com> |
|---|---|
| date | Wed, 11 Feb 2009 18:09:41 +0500 |
| parent | 760:90ce865eebd8 |
| child | 826:27978a3f2c0c |
comparison
equal
deleted
inserted
replaced
| 779:ec0eadf4e9ff | 780:4417ab6ccc20 |
|---|---|
| 95 end | 95 end |
| 96 origin.priority = 0; | 96 origin.priority = 0; |
| 97 if stanza.attr.type == "unavailable" then | 97 if stanza.attr.type == "unavailable" then |
| 98 origin.presence = nil; | 98 origin.presence = nil; |
| 99 if origin.directed then | 99 if origin.directed then |
| 100 for _, jid in ipairs(origin.directed) do | 100 for jid in pairs(origin.directed) do |
| 101 stanza.attr.to = jid; | 101 stanza.attr.to = jid; |
| 102 core_route_stanza(origin, stanza); | 102 core_route_stanza(origin, stanza); |
| 103 end | 103 end |
| 104 origin.directed = nil; | 104 origin.directed = nil; |
| 105 end | 105 end |