diff options
author | Kim Alvefur <zash@zash.se> | 2020-05-09 13:33:26 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-05-09 13:33:26 +0200 |
commit | d182923d72aac40aaa95bee9e3dac7b3c63d6fc8 (patch) | |
tree | 9fb836331934ff47d755abd4a3d471f79d7a54bd /plugins | |
parent | 35c44c74ab5125515107c5e54bbdeae7ec2e10bc (diff) | |
download | prosody-d182923d72aac40aaa95bee9e3dac7b3c63d6fc8.tar.gz prosody-d182923d72aac40aaa95bee9e3dac7b3c63d6fc8.zip |
mod_csi_simple: Fix treating presence errors as presence updates
Autocomplete fail probably.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_csi_simple.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_csi_simple.lua b/plugins/mod_csi_simple.lua index 2c3b3042..8c6f75c8 100644 --- a/plugins/mod_csi_simple.lua +++ b/plugins/mod_csi_simple.lua @@ -28,7 +28,7 @@ function is_important(stanza) --> boolean, reason: string if not st_name then return false; end local st_type = stanza.attr.type; if st_name == "presence" then - if st_type == nil or st_type == "unavailable" or st_name == "error" then + if st_type == nil or st_type == "unavailable" or st_type == "error" then return false, "presence update"; end -- TODO Some MUC awareness, e.g. check for the 'this relates to you' status code |