equal
deleted
inserted
replaced
33 end |
33 end |
34 |
34 |
35 local function handle_stanza(event) |
35 local function handle_stanza(event) |
36 local stanza, occupant = event.stanza, event.occupant; |
36 local stanza, occupant = event.stanza, event.occupant; |
37 |
37 |
38 if stanza.name == "presence" and stanza.attr.type == "unavailable" then -- not required here |
|
39 return; |
|
40 end |
|
41 |
|
42 -- TODO: Handle MAM. |
38 -- TODO: Handle MAM. |
43 |
39 |
44 -- strip any existing <occupant-id/> tags to avoid forgery |
40 -- strip any existing <occupant-id/> tags to avoid forgery |
45 stanza:remove_children("occupant-id", xmlns_occupant_id); |
41 stanza:remove_children("occupant-id", xmlns_occupant_id); |
46 |
42 |