Diff

core/moduleapi.lua @ 9042:734ba7080b35

moduleapi: Use :send API from :broadcast for compactness
author Kim Alvefur <zash@zash.se>
date Sat, 14 Jul 2018 21:25:34 +0200
parent 8994:f17e768c1a99
child 9149:d03f21729b2c
line wrap: on
line diff
--- a/core/moduleapi.lua	Sat Jul 14 20:18:49 2018 +0200
+++ b/core/moduleapi.lua	Sat Jul 14 21:25:34 2018 +0200
@@ -366,7 +366,7 @@
 	for jid in (iter or it.values)(jids) do
 		local new_stanza = st.clone(stanza);
 		new_stanza.attr.to = jid;
-		core_post_stanza(hosts[self.host], new_stanza);
+		self:send(new_stanza);
 	end
 end