Diff

core/moduleapi.lua @ 7343:1da5a710848d

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Thu, 07 Apr 2016 13:36:58 +0200
parent 7164:af26e8eb591f
parent 7342:79a5db780e8b
child 7647:e9d7a409e236
line wrap: on
line diff
--- 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)