diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/moduleapi.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua index 8db5c218..9b773f89 100644 --- a/core/moduleapi.lua +++ b/core/moduleapi.lua @@ -375,8 +375,8 @@ function api:provides(name, item) 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) |