diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-07-09 17:41:57 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-07-09 17:41:57 +0100 |
commit | 5254cb329df8005893001df0767d6df8f210c889 (patch) | |
tree | 147491aeeddb882617b80bab61053bd096c4be15 /plugins/muc | |
parent | c519caac6e48cbb67ff470f913f705945b128aab (diff) | |
download | prosody-5254cb329df8005893001df0767d6df8f210c889.tar.gz prosody-5254cb329df8005893001df0767d6df8f210c889.zip |
MUC: Return new occupant object from :save_occupant(), which can include useful info
Diffstat (limited to 'plugins/muc')
-rw-r--r-- | plugins/muc/muc.lib.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index b48ee7db..fe3b7c93 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -127,6 +127,7 @@ function room_mt:save_occupant(occupant) occupant = nil end self._occupants[id] = occupant + return occupant end function room_mt:route_to_occupant(occupant, stanza) |