aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-08-24 21:04:27 +0200
committerKim Alvefur <zash@zash.se>2018-08-24 21:04:27 +0200
commitea53be2d5249c1568eccaedead11a29edc44c7d9 (patch)
tree421bf77f1fa119141f885c50fb052adfd3955293 /plugins
parent509755ea3fad8724b519459808f1b563b786f853 (diff)
downloadprosody-ea53be2d5249c1568eccaedead11a29edc44c7d9.tar.gz
prosody-ea53be2d5249c1568eccaedead11a29edc44c7d9.zip
mod_version: Remove redundant
What else would @to be in a iq/host event?
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_version.lua6
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);