# HG changeset patch # User Kim Alvefur # Date 1531596334 -7200 # Node ID 734ba7080b3550f22bb7cbce43cfada45308eb6c # Parent b3bc742ee188bf91fe874fc02511be1999ef1624 moduleapi: Use :send API from :broadcast for compactness diff -r b3bc742ee188 -r 734ba7080b35 core/moduleapi.lua --- 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