aboutsummaryrefslogtreecommitdiffstats
path: root/core/moduleapi.lua
diff options
context:
space:
mode:
Diffstat (limited to 'core/moduleapi.lua')
-rw-r--r--core/moduleapi.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua
index 71239a0c..021db4c8 100644
--- a/core/moduleapi.lua
+++ b/core/moduleapi.lua
@@ -438,8 +438,8 @@ function api:send_iq(stanza, origin, timeout)
local wrapped_origin = setmetatable({
-- XXX Needed in some cases for replies to work correctly when sending queries internally.
- send = function (stanza)
- resolve({ stanza = stanza });
+ send = function (reply)
+ resolve({ stanza = reply });
end;
}, {
__index = origin or hosts[self.host];