diff options
-rw-r--r-- | plugins/mod_version.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_version.lua b/plugins/mod_version.lua index 7f045415..e0d1def7 100644 --- a/plugins/mod_version.lua +++ b/plugins/mod_version.lua @@ -39,9 +39,9 @@ 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 + if stanza.attr.to == module.host then event.origin.send(st.reply(stanza):add_child(query)); return true; end |