aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-07-14 21:25:34 +0200
committerKim Alvefur <zash@zash.se>2018-07-14 21:25:34 +0200
commitc86e5f565c372dd66b1e9e5dafd42a2d7cce7007 (patch)
tree7acca4deee221b02d82216e0976212b0a20f70e0 /core
parent287b09ab3187ffca7b9c4f40dcfdf986d0464a81 (diff)
downloadprosody-c86e5f565c372dd66b1e9e5dafd42a2d7cce7007.tar.gz
prosody-c86e5f565c372dd66b1e9e5dafd42a2d7cce7007.zip
moduleapi: Use :send API from :broadcast for compactness
Diffstat (limited to 'core')
-rw-r--r--core/moduleapi.lua2
1 files changed, 1 insertions, 1 deletions
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