Comparison

plugins/mod_csi_simple.lua @ 10824:c8430ee33967

mod_csi_simple: Fix treating presence errors as presence updates Autocomplete fail probably.
author Kim Alvefur <zash@zash.se>
date Sat, 09 May 2020 13:33:26 +0200
parent 10823:b8be600803ee
child 10825:2d002a4af144
comparison
equal deleted inserted replaced
10823:b8be600803ee 10824:c8430ee33967
26 end 26 end
27 local st_name = stanza.name; 27 local st_name = stanza.name;
28 if not st_name then return false; end 28 if not st_name then return false; end
29 local st_type = stanza.attr.type; 29 local st_type = stanza.attr.type;
30 if st_name == "presence" then 30 if st_name == "presence" then
31 if st_type == nil or st_type == "unavailable" or st_name == "error" then 31 if st_type == nil or st_type == "unavailable" or st_type == "error" then
32 return false, "presence update"; 32 return false, "presence update";
33 end 33 end
34 -- TODO Some MUC awareness, e.g. check for the 'this relates to you' status code 34 -- TODO Some MUC awareness, e.g. check for the 'this relates to you' status code
35 return true, "subscription request"; 35 return true, "subscription request";
36 elseif st_name == "message" then 36 elseif st_name == "message" then