diff options
author | Kim Alvefur <zash@zash.se> | 2019-12-30 09:53:10 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-12-30 09:53:10 +0100 |
commit | cdd6144dcc649f612c86f786c4e7fe8a12653582 (patch) | |
tree | 0b00779a949a07f86a117eee1e97e722f3ea7a72 | |
parent | 30f7e379d4b316c197c837dce2c47b73b8b77d1f (diff) | |
download | prosody-cdd6144dcc649f612c86f786c4e7fe8a12653582.tar.gz prosody-cdd6144dcc649f612c86f786c4e7fe8a12653582.zip |
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.
-rw-r--r-- | core/moduleapi.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua index 0a8adc36..dc1f899c 100644 --- a/core/moduleapi.lua +++ b/core/moduleapi.lua @@ -398,7 +398,7 @@ function api:send_iq(stanza, origin, timeout) 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 |