aboutsummaryrefslogtreecommitdiffstats
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
commitbce7e2dbb9c2f3f2b367d5d9e00b70c20f773246 (patch)
tree421bf77f1fa119141f885c50fb052adfd3955293
parent2dc6f58f0dee1a2e5eaaeecf1637a883225e0cd7 (diff)
downloadprosody-bce7e2dbb9c2f3f2b367d5d9e00b70c20f773246.tar.gz
prosody-bce7e2dbb9c2f3f2b367d5d9e00b70c20f773246.zip
mod_version: Remove redundant
What else would @to be in a iq/host event?
-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);