# HG changeset patch # User Kim Alvefur # Date 1493315718 -7200 # Node ID 956b75b0e9d9718ffe64521a91f5f530abe7c094 # Parent 2e61642d2ff0d02d157b35c662c3de37f838ad7a mod_csi_pump: Consider presence other than presence updates important (ie subscription requests) diff -r 2e61642d2ff0 -r 956b75b0e9d9 mod_csi_pump/mod_csi_pump.lua --- a/mod_csi_pump/mod_csi_pump.lua Thu Apr 27 19:54:53 2017 +0200 +++ b/mod_csi_pump/mod_csi_pump.lua Thu Apr 27 19:55:18 2017 +0200 @@ -48,7 +48,10 @@ local st_type = stanza.attr.type; if st_name == "presence" then -- TODO check for MUC status codes? - return false; + if st_type == nil or st_type == "unavailable" then + return false; + end + return true; elseif st_name == "message" then if st_type == "headline" then return false;