# HG changeset patch # User Kim Alvefur # Date 1485183620 -3600 # Node ID 3ed504b944e59df5a8c94ada905ac80f64532f12 # Parent 8e686bf634418c9bc2fad2a6343de751c32e7849 mod_csi_pump: Consider groupchat message with subject important diff -r 8e686bf63441 -r 3ed504b944e5 mod_csi_pump/mod_csi_pump.lua --- a/mod_csi_pump/mod_csi_pump.lua Sun Jan 22 04:47:06 2017 +0100 +++ b/mod_csi_pump/mod_csi_pump.lua Mon Jan 23 16:00:20 2017 +0100 @@ -54,8 +54,9 @@ return false; end local body = stanza:get_child_text("body"); - if not body then return false; end if st_type == "groupchat" then + if stanza:get_child_text("subject") then return true; end + if not body then return false; end if body:find(session.username, 1, true) then return true; end local rooms = session.rooms_joined; if not rooms then return false; end