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 | 044c0f598c03124d32d2f3271d13f4b8baad5068 (patch) | |
tree | 147491aeeddb882617b80bab61053bd096c4be15 /plugins/muc/muc.lib.lua | |
parent | b15877ac0fcf3d0b012bebaefc635a19210e72ca (diff) | |
download | prosody-044c0f598c03124d32d2f3271d13f4b8baad5068.tar.gz prosody-044c0f598c03124d32d2f3271d13f4b8baad5068.zip |
MUC: Return new occupant object from :save_occupant(), which can include useful info
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-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) |