From 7e9fabadf4d3bf16ac8b12f271c0117e3ca1ee8f Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 14 Jul 2018 21:25:34 +0200 Subject: moduleapi: Use :send API from :broadcast for compactness --- core/moduleapi.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/moduleapi.lua') diff --git a/core/moduleapi.lua b/core/moduleapi.lua index 2afd54cd..764df2a2 100644 --- a/core/moduleapi.lua +++ b/core/moduleapi.lua @@ -366,7 +366,7 @@ function api:broadcast(jids, stanza, iter) 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 -- cgit v1.2.3