Changeset

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 (2017-04-27)
parents 2709:2e61642d2ff0
children 2711:ff1f7e61517f 2752:d0e75bf21d30
files mod_csi_pump/mod_csi_pump.lua
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
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;