aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_version.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_version.lua')
-rw-r--r--plugins/mod_version.lua8
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/mod_version.lua b/plugins/mod_version.lua
index 7f045415..2603283a 100644
--- a/plugins/mod_version.lua
+++ b/plugins/mod_version.lua
@@ -39,10 +39,8 @@ if not module:get_option_boolean("hide_os_type") then
end
end
-module:hook("iq/host/jabber:iq:version:query", function(event)
+module:hook("iq-get/host/jabber:iq:version:query", function(event)
local stanza = event.stanza;
- if stanza.attr.type == "get" and stanza.attr.to == module.host then
- event.origin.send(st.reply(stanza):add_child(query));
- return true;
- end
+ event.origin.send(st.reply(stanza):add_child(query));
+ return true;
end);