mod_query_client_ver: Signal that events are handled even when no response is returned (see #876)
--- a/mod_query_client_ver/mod_query_client_ver.lua Tue Mar 28 17:09:39 2017 +0200
+++ b/mod_query_client_ver/mod_query_client_ver.lua Thu Mar 30 21:04:40 2017 +0200
@@ -34,6 +34,7 @@
end
end
origin.send(st.iq({ id = disco_id, type = "get", from = module.host, to = origin.full_jid }):query(xmlns_disco_info));
+ return true;
end);
module:hook("iq-result/host/"..disco_id, function(event)
@@ -43,9 +44,9 @@
local ident = query:get_child("identity");
if ident and ident.attr.name then
origin.log("info", "Running %s", ident.attr.name);
- return true;
end
end
-- Unknown software
+ return true;
end);