Software /
code /
prosody-modules
Diff
mod_csi_pump/mod_csi_pump.lua @ 2710:956b75b0e9d9
mod_csi_pump: Consider presence other than presence updates important (ie subscription requests)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 27 Apr 2017 19:55:18 +0200 |
parent | 2460:3ed504b944e5 |
line wrap: on
line diff
--- 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;