Comparison

core/moduleapi.lua @ 10706:0230ceecb8a9

moduleapi: Rename argument to silence luacheck
author Kim Alvefur <zash@zash.se>
date Wed, 01 Apr 2020 22:32:50 +0200
parent 10705:2cffb5ce9f7a
child 10885:2f751880767c
comparison
equal deleted inserted replaced
10705:2cffb5ce9f7a 10706:0230ceecb8a9
436 return; 436 return;
437 end 437 end
438 438
439 local wrapped_origin = setmetatable({ 439 local wrapped_origin = setmetatable({
440 -- XXX Needed in some cases for replies to work correctly when sending queries internally. 440 -- XXX Needed in some cases for replies to work correctly when sending queries internally.
441 send = function (stanza) 441 send = function (reply)
442 resolve({ stanza = stanza }); 442 resolve({ stanza = reply });
443 end; 443 end;
444 }, { 444 }, {
445 __index = origin or hosts[self.host]; 445 __index = origin or hosts[self.host];
446 }); 446 });
447 447