# HG changeset patch # User Kim Alvefur # Date 1460029018 -7200 # Node ID 1da5a710848df52cc4c9529a3cb680441724f72c # Parent aa94cd27df4d144cf5a91a6b5e1c623434792a4f# Parent 79a5db780e8b26bbf52b5e68412cc3ee1ef1d759 Merge 0.10->trunk diff -r aa94cd27df4d -r 1da5a710848d core/moduleapi.lua --- a/core/moduleapi.lua Wed Apr 06 14:50:34 2016 +0200 +++ b/core/moduleapi.lua Thu Apr 07 13:36:58 2016 +0200 @@ -375,8 +375,8 @@ self:add_item(name.."-provider", item); end -function api:send(stanza) - return core_post_stanza(hosts[self.host], stanza); +function api:send(stanza, origin) + return core_post_stanza(origin or hosts[self.host], stanza); end function api:broadcast(jids, stanza, iter)