Merge 0.10->trunk
authorKim Alvefur <zash@zash.se>
Thu, 7 Apr 2016 11:36:58 +0000 (13:36 +0200)
committerKim Alvefur <zash@zash.se>
Thu, 7 Apr 2016 11:36:58 +0000 (13:36 +0200)
core/moduleapi.lua

index 8db5c2180757794cd9a77f3e5f5b5522c16756f6..9b773f89c5314ba7e9a0771722869cf69d79d8c3 100644 (file)
@@ -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)