Changeset

7343:1da5a710848d

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Thu, 07 Apr 2016 13:36:58 +0200
parents 7341:aa94cd27df4d (current diff) 7342:79a5db780e8b (diff)
children 7346:4ea5ce5efff8
files core/moduleapi.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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)