Software /
code /
prosody
Comparison
core/presencemanager.lua @ 966:d2692d427496
Fixed: Issue with presence error routing
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Tue, 07 Apr 2009 02:24:37 +0500 |
parent | 896:2c0b9e3c11c3 |
child | 1074:7798735be42b |
comparison
equal
deleted
inserted
replaced
959:e3db909065f2 | 966:d2692d427496 |
---|---|
26 | 26 |
27 module "presencemanager" | 27 module "presencemanager" |
28 | 28 |
29 function handle_presence(origin, stanza, from_bare, to_bare, core_route_stanza, inbound) | 29 function handle_presence(origin, stanza, from_bare, to_bare, core_route_stanza, inbound) |
30 local type = stanza.attr.type; | 30 local type = stanza.attr.type; |
31 if type and type ~= "unavailable" then | 31 if type and type ~= "unavailable" and type ~= "error" then |
32 if inbound then | 32 if inbound then |
33 handle_inbound_presence_subscriptions_and_probes(origin, stanza, from_bare, to_bare, core_route_stanza); | 33 handle_inbound_presence_subscriptions_and_probes(origin, stanza, from_bare, to_bare, core_route_stanza); |
34 else | 34 else |
35 handle_outbound_presence_subscriptions_and_probes(origin, stanza, from_bare, to_bare, core_route_stanza); | 35 handle_outbound_presence_subscriptions_and_probes(origin, stanza, from_bare, to_bare, core_route_stanza); |
36 end | 36 end |