Mercurial > prosody-hg
comparison plugins/muc/muc.lib.lua @ 9002:1fcddb4a4d16
MUC: Return new occupant object from :save_occupant(), which can include useful info
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Mon, 09 Jul 2018 17:41:57 +0100 |
| parents | ae84911c1441 |
| children | a971023e9b6e |
comparison
equal
deleted
inserted
replaced
| 9001:23070882f3d4 | 9002:1fcddb4a4d16 |
|---|---|
| 125 end | 125 end |
| 126 if not has_live_session then | 126 if not has_live_session then |
| 127 occupant = nil | 127 occupant = nil |
| 128 end | 128 end |
| 129 self._occupants[id] = occupant | 129 self._occupants[id] = occupant |
| 130 return occupant | |
| 130 end | 131 end |
| 131 | 132 |
| 132 function room_mt:route_to_occupant(occupant, stanza) | 133 function room_mt:route_to_occupant(occupant, stanza) |
| 133 local to = stanza.attr.to; | 134 local to = stanza.attr.to; |
| 134 for jid in occupant:each_session() do | 135 for jid in occupant:each_session() do |
