diff options
author | Kim Alvefur <zash@zash.se> | 2021-09-24 20:26:21 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-09-24 20:26:21 +0200 |
commit | f5ea676b92a92fd720ad083d7e2a3b3a471545e7 (patch) | |
tree | cb183b7b2076d962f3d173ac064b13f39533ba20 /core/moduleapi.lua | |
parent | e341f785e6025bb36d3219444d379f1b8b634df0 (diff) | |
download | prosody-f5ea676b92a92fd720ad083d7e2a3b3a471545e7.tar.gz prosody-f5ea676b92a92fd720ad083d7e2a3b3a471545e7.zip |
core.moduleapi: Ensure module:send_iq() handler priority over mod_iq
To prevent a situation where you for whatever reason use a full JID that
is currently online and the response ends up routed there instead of the
module:send_iq() handlers.
Diffstat (limited to 'core/moduleapi.lua')
-rw-r--r-- | core/moduleapi.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua index 52410352..9bbff0c9 100644 --- a/core/moduleapi.lua +++ b/core/moduleapi.lua @@ -421,8 +421,8 @@ function api:send_iq(stanza, origin, timeout) return; end - self:hook(result_event, result_handler); - self:hook(error_event, error_handler); + self:hook(result_event, result_handler, 1); + self:hook(error_event, error_handler, 1); local timeout_handle = self:add_timer(timeout or 120, function () reject(errors.new({ |