Mercurial > prosody-modules
comparison mod_minimix/mod_minimix.lua @ 3120:b914ee44b49f
mod_minimix: Drop presence updates for now (may be treated as GC 1.0 joins)
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 19 Jun 2018 18:57:14 +0200 |
| parents | f84a6ad72548 |
| children | c69f32c9c576 |
comparison
equal
deleted
inserted
replaced
| 3119:f84a6ad72548 | 3120:b914ee44b49f |
|---|---|
| 56 if origin.joined_rooms and origin.joined_rooms[room_jid] then | 56 if origin.joined_rooms and origin.joined_rooms[room_jid] then |
| 57 origin.joined_rooms[room_jid] = nil; | 57 origin.joined_rooms[room_jid] = nil; |
| 58 end | 58 end |
| 59 origin.send(st.reply(stanza)); | 59 origin.send(st.reply(stanza)); |
| 60 return true; | 60 return true; |
| 61 elseif stanza.attr.type == nil and origin.joined_rooms and origin.joined_rooms[room_jid] then | |
| 62 return true; -- Supress these | |
| 61 end | 63 end |
| 62 end); | 64 end); |
| 63 | 65 |
| 64 module:hook("pre-message/bare", function (event) | 66 module:hook("pre-message/bare", function (event) |
| 65 local origin, stanza = event.origin, event.stanza; | 67 local origin, stanza = event.origin, event.stanza; |
