Mercurial > prosody-modules
changeset 2991:9d205ec1fa00
mod_query_client_ver: Fix check for sessions on the current host
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 04 Apr 2018 16:32:51 +0200 |
parents | cb8d65b40fb4 |
children | 5fd9462117cd |
files | mod_query_client_ver/mod_query_client_ver.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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