Diff

plugins/muc/muc.lib.lua @ 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
parent 8931:ae84911c1441
child 9003:a971023e9b6e
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)