Software /
code /
prosody
Comparison
core/presencemanager.lua @ 862:b3b80ccddb0c
Merged with main tip.
author | Tobias Markmann <tm@ayena.de> |
---|---|
date | Tue, 03 Mar 2009 17:48:04 +0100 |
parent | 826:27978a3f2c0c |
child | 873:e7ecde5d50e3 |
comparison
equal
deleted
inserted
replaced
861:2a5373897128 | 862:b3b80ccddb0c |
---|---|
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 local old_from = stanza.attr.from; | |
101 stanza.attr.from = origin.full_jid; | |
100 for jid in pairs(origin.directed) do | 102 for jid in pairs(origin.directed) do |
101 stanza.attr.to = jid; | 103 stanza.attr.to = jid; |
102 core_route_stanza(origin, stanza); | 104 core_route_stanza(origin, stanza); |
103 end | 105 end |
106 stanza.attr.from = old_from; | |
104 origin.directed = nil; | 107 origin.directed = nil; |
105 end | 108 end |
106 else | 109 else |
107 origin.presence = stanza; | 110 origin.presence = stanza; |
108 local priority = stanza:child_with_name("priority"); | 111 local priority = stanza:child_with_name("priority"); |