Diff

plugins/muc/muc.lib.lua @ 7411:f385cd6127b2

MUC: Add event for when room is done being created
author Kim Alvefur <zash@zash.se>
date Thu, 28 Apr 2016 22:57:53 +0200
parent 7410:45f543c82893
child 7412:f9744effae04
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua	Thu Apr 28 22:57:02 2016 +0200
+++ b/plugins/muc/muc.lib.lua	Thu Apr 28 22:57:53 2016 +0200
@@ -435,6 +435,12 @@
 		origin = origin;
 		jid = real_jid;
 	});
+	module:fire_event("muc-room-created", {
+		room = self;
+		creator = dest_occupant;
+		stanza = stanza;
+		origin = origin;
+	});
 	return true;
 end