aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commit044c0f598c03124d32d2f3271d13f4b8baad5068 (patch)
tree147491aeeddb882617b80bab61053bd096c4be15 /plugins
parentb15877ac0fcf3d0b012bebaefc635a19210e72ca (diff)
downloadprosody-044c0f598c03124d32d2f3271d13f4b8baad5068.tar.gz
prosody-044c0f598c03124d32d2f3271d13f4b8baad5068.zip
MUC: Return new occupant object from :save_occupant(), which can include useful info
Diffstat (limited to 'plugins')
-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)