Changeset

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
parents 9041:b3bc742ee188
children 9043:9d77b6588bdf
files core/moduleapi.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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