mod_query_client_ver: Use the module name as adhoc command node (mistakenly not changed after copying from mod_ping)
authorKim Alvefur <zash@zash.se>
Wed, 04 Apr 2018 16:43:22 +0200
changeset 2997 1f8220f0c8bf
parent 2996 5fd9462117cd
child 2998 9842979f3034
mod_query_client_ver: Use the module name as adhoc command node (mistakenly not changed after copying from mod_ping)
mod_query_client_ver/mod_query_client_ver.lua
--- a/mod_query_client_ver/mod_query_client_ver.lua	Wed Apr 04 16:36:58 2018 +0200
+++ b/mod_query_client_ver/mod_query_client_ver.lua	Wed Apr 04 16:43:22 2018 +0200
@@ -58,7 +58,7 @@
 end);
 
 module:add_item("adhoc",
-	module:require "adhoc".new("Query all currently connected clients", "ping",
+	module:require "adhoc".new("Query all currently connected clients", module.name,
 	function (self, data, state)
 		for jid, session in pairs(prosody.full_sessions) do
 			if session.host == module.host then