aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_csi_simple.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-05-09 13:33:26 +0200
committerKim Alvefur <zash@zash.se>2020-05-09 13:33:26 +0200
commit749ed917c1c1a5d34ffb92b0da4cf1cc3f22cf50 (patch)
tree9fb836331934ff47d755abd4a3d471f79d7a54bd /plugins/mod_csi_simple.lua
parentade3caf1ad39b977ea3233238ba86a1f8635a334 (diff)
downloadprosody-749ed917c1c1a5d34ffb92b0da4cf1cc3f22cf50.tar.gz
prosody-749ed917c1c1a5d34ffb92b0da4cf1cc3f22cf50.zip
mod_csi_simple: Fix treating presence errors as presence updates
Autocomplete fail probably.
Diffstat (limited to 'plugins/mod_csi_simple.lua')
-rw-r--r--plugins/mod_csi_simple.lua2
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