Software /
code /
prosody
Changeset
10824:c8430ee33967
mod_csi_simple: Fix treating presence errors as presence updates
Autocomplete fail probably.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 09 May 2020 13:33:26 +0200 |
parents | 10823:b8be600803ee |
children | 10825:2d002a4af144 |
files | plugins/mod_csi_simple.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_csi_simple.lua Sat May 09 01:01:03 2020 +0200 +++ b/plugins/mod_csi_simple.lua Sat May 09 13:33:26 2020 +0200 @@ -28,7 +28,7 @@ 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