diff options
author | Kim Alvefur <zash@zash.se> | 2018-08-24 21:04:27 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-08-24 21:04:27 +0200 |
commit | bce7e2dbb9c2f3f2b367d5d9e00b70c20f773246 (patch) | |
tree | 421bf77f1fa119141f885c50fb052adfd3955293 /plugins/mod_version.lua | |
parent | 2dc6f58f0dee1a2e5eaaeecf1637a883225e0cd7 (diff) | |
download | prosody-bce7e2dbb9c2f3f2b367d5d9e00b70c20f773246.tar.gz prosody-bce7e2dbb9c2f3f2b367d5d9e00b70c20f773246.zip |
mod_version: Remove redundant
What else would @to be in a iq/host event?
Diffstat (limited to 'plugins/mod_version.lua')
-rw-r--r-- | plugins/mod_version.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/mod_version.lua b/plugins/mod_version.lua index e0d1def7..2603283a 100644 --- a/plugins/mod_version.lua +++ b/plugins/mod_version.lua @@ -41,8 +41,6 @@ end 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); |