# HG changeset patch # User Kim Alvefur # Date 1535137467 -7200 # Node ID 1338b84c0566db2143d3dd817f6c2f3243482799 # Parent e2e2aa76ea3174ad7a42f5779ff6bc84dd62d330 mod_version: Remove redundant What else would @to be in a iq/host event? diff -r e2e2aa76ea31 -r 1338b84c0566 plugins/mod_version.lua --- a/plugins/mod_version.lua Fri Aug 24 20:36:06 2018 +0200 +++ b/plugins/mod_version.lua Fri Aug 24 21:04:27 2018 +0200 @@ -41,8 +41,6 @@ module:hook("iq-get/host/jabber:iq:version:query", function(event) local stanza = event.stanza; - if 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);