Mercurial > prosody-modules
comparison mod_minimix/mod_minimix.lua @ 3122:c69f32c9c576
mod_minimix: Don't consider oneself fully joined until subject message
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 19 Jun 2018 21:59:34 +0200 |
| parents | b914ee44b49f |
| children | f4e86d2662ec |
comparison
equal
deleted
inserted
replaced
| 3121:92b4a1d72d73 | 3122:c69f32c9c576 |
|---|---|
| 27 origin.joined_rooms[room_jid] = nickname; | 27 origin.joined_rooms[room_jid] = nickname; |
| 28 else | 28 else |
| 29 origin.joined_rooms = { [room_jid] = nickname }; | 29 origin.joined_rooms = { [room_jid] = nickname }; |
| 30 end | 30 end |
| 31 | 31 |
| 32 if data:get(username, room_jid) then | 32 if data:get(username, room_jid, "subject") then |
| 33 module:log("debug", "Already joined to %s as %s", room_jid, nickname); | 33 module:log("debug", "Already joined to %s as %s", room_jid, nickname); |
| 34 local presences = data:get(username, room_jid, "presence"); | 34 local presences = data:get(username, room_jid, "presence"); |
| 35 for _, pres in pairs(presences) do | 35 for _, pres in pairs(presences) do |
| 36 origin.send(st.clone(pres)); | 36 origin.send(st.clone(pres)); |
| 37 end | 37 end |
