# HG changeset patch # User Kim Alvefur # Date 1589024006 -7200 # Node ID c8430ee339676bd285b2280ae5d17f41eb7f2526 # Parent b8be600803eee1676de05c1c3856403565df18e1 mod_csi_simple: Fix treating presence errors as presence updates Autocomplete fail probably. diff -r b8be600803ee -r c8430ee33967 plugins/mod_csi_simple.lua --- 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