Comparison

plugins/mod_presence.lua @ 1472:9b13cea9fa3e

mod_presence: Removed some unnecessary code
author Waqas Hussain <waqas20@gmail.com>
date Sun, 05 Jul 2009 11:57:18 +0500
parent 1470:af4b918e3432
child 1473:d2211cbb822f
comparison
equal deleted inserted replaced
1471:8b3753b080fc 1472:9b13cea9fa3e
117 if origin.priority then 117 if origin.priority then
118 origin.priority = nil; 118 origin.priority = nil;
119 recalc_resource_map(origin); 119 recalc_resource_map(origin);
120 end 120 end
121 if origin.directed then 121 if origin.directed then
122 local old_from = stanza.attr.from;
123 stanza.attr.from = origin.full_jid;
124 for jid in pairs(origin.directed) do 122 for jid in pairs(origin.directed) do
125 stanza.attr.to = jid; 123 stanza.attr.to = jid;
126 core_route_stanza(origin, stanza); 124 core_route_stanza(origin, stanza);
127 end 125 end
128 stanza.attr.from = old_from;
129 origin.directed = nil; 126 origin.directed = nil;
130 end 127 end
131 else 128 else
132 origin.presence = stanza; 129 origin.presence = stanza;
133 local priority = stanza:child_with_name("priority"); 130 local priority = stanza:child_with_name("priority");