# HG changeset patch # User Kim Alvefur # Date 1522852371 -7200 # Node ID 9d205ec1fa003b7bf1af348af407a207c6c66127 # Parent cb8d65b40fb46385069b8e108f2620a62764a51d mod_query_client_ver: Fix check for sessions on the current host diff -r cb8d65b40fb4 -r 9d205ec1fa00 mod_query_client_ver/mod_query_client_ver.lua --- a/mod_query_client_ver/mod_query_client_ver.lua Wed Apr 04 16:31:44 2018 +0200 +++ b/mod_query_client_ver/mod_query_client_ver.lua Wed Apr 04 16:32:51 2018 +0200 @@ -61,7 +61,7 @@ module:require "adhoc".new("Query all currently connected clients", "ping", function (self, data, state) for jid, session in pairs(prosody.full_sessions) do - if session.jid == module.host then + if session.host == module.host then session.send(st.iq({ id = version_id, type = "get", from = module.host, to = session.full_jid }):query(xmlns_iq_version)); end end