aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/muc.lib.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-07-09 17:41:57 +0100
committerMatthew Wild <mwild1@gmail.com>2018-07-09 17:41:57 +0100
commit5254cb329df8005893001df0767d6df8f210c889 (patch)
tree147491aeeddb882617b80bab61053bd096c4be15 /plugins/muc/muc.lib.lua
parentc519caac6e48cbb67ff470f913f705945b128aab (diff)
downloadprosody-5254cb329df8005893001df0767d6df8f210c889.tar.gz
prosody-5254cb329df8005893001df0767d6df8f210c889.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.lua1
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)