Mercurial > prosody-hg
comparison core/presencemanager.lua @ 641:658a2de74afc
Directed presence
| author | Waqas Hussain <waqas20@gmail.com> |
|---|---|
| date | Thu, 25 Dec 2008 04:58:15 +0500 |
| parents | 4ae3e81513f3 |
| children | 5f8382768530 |
comparison
equal
deleted
inserted
replaced
| 640:068130563311 | 641:658a2de74afc |
|---|---|
| 102 offlinemanager.deleteAll(node, host); | 102 offlinemanager.deleteAll(node, host); |
| 103 end | 103 end |
| 104 origin.priority = 0; | 104 origin.priority = 0; |
| 105 if stanza.attr.type == "unavailable" then | 105 if stanza.attr.type == "unavailable" then |
| 106 origin.presence = nil; | 106 origin.presence = nil; |
| 107 if origin.directed then | |
| 108 for _, jid in ipairs(origin.directed) do | |
| 109 stanza.attr.to = jid; | |
| 110 core_route_stanza(origin, stanza); | |
| 111 end | |
| 112 origin.directed = nil; | |
| 113 end | |
| 107 else | 114 else |
| 108 origin.presence = stanza; | 115 origin.presence = stanza; |
| 109 local priority = stanza:child_with_name("priority"); | 116 local priority = stanza:child_with_name("priority"); |
| 110 if priority and #priority > 0 then | 117 if priority and #priority > 0 then |
| 111 priority = t_concat(priority); | 118 priority = t_concat(priority); |
