mod_query_client_ver: Fix check for sessions on the current host
authorKim Alvefur <zash@zash.se>
Wed, 04 Apr 2018 16:32:51 +0200
changeset 2995 9d205ec1fa00
parent 2994 cb8d65b40fb4
child 2996 5fd9462117cd
mod_query_client_ver: Fix check for sessions on the current host
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