comparison mod_query_client_ver/mod_query_client_ver.lua @ 2992:5fd9462117cd

mod_query_client_ver: Restrict adhoc command to local admins
author Kim Alvefur <zash@zash.se>
date Wed, 04 Apr 2018 16:36:58 +0200
parents 9d205ec1fa00
children 1f8220f0c8bf
comparison
equal deleted inserted replaced
2991:9d205ec1fa00 2992:5fd9462117cd
64 if session.host == module.host then 64 if session.host == module.host then
65 session.send(st.iq({ id = version_id, type = "get", from = module.host, to = session.full_jid }):query(xmlns_iq_version)); 65 session.send(st.iq({ id = version_id, type = "get", from = module.host, to = session.full_jid }):query(xmlns_iq_version));
66 end 66 end
67 end 67 end
68 return { info = "Ok, check your logs for results", status = "completed" } 68 return { info = "Ok, check your logs for results", status = "completed" }
69 end)); 69 end, "admin"));
70 70