Software /
code /
prosody
Changeset
10575:5cf8e96575b3
core.moduleapi: Fix error context in :send_iq API
It got passed as argument to reject() instead of the util.error
function and was lost.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 30 Dec 2019 09:53:10 +0100 |
parents | 10574:f70c874b7936 |
children | 10576:f88f1151bc72 |
files | core/moduleapi.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/core/moduleapi.lua Sun Dec 29 22:20:51 2019 +0100 +++ b/core/moduleapi.lua Mon Dec 30 09:53:10 2019 +0100 @@ -398,7 +398,7 @@ local function error_handler(event) if event.stanza.attr.from == stanza.attr.to then - reject(errutil.from_stanza(event.stanza), event); + reject(errutil.from_stanza(event.stanza, event)); return true; end end