Changeset

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 9001:23070882f3d4
children 9003:a971023e9b6e
files plugins/muc/muc.lib.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua	Mon Jul 09 00:54:03 2018 +0200
+++ b/plugins/muc/muc.lib.lua	Mon Jul 09 17:41:57 2018 +0100
@@ -127,6 +127,7 @@
 		occupant = nil
 	end
 	self._occupants[id] = occupant
+	return occupant
 end
 
 function room_mt:route_to_occupant(occupant, stanza)