equal
deleted
inserted
replaced
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 |