Mercurial > prosody-hg
comparison plugins/mod_version.lua @ 9229:1338b84c0566
mod_version: Remove redundant
What else would @to be in a iq/host event?
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 24 Aug 2018 21:04:27 +0200 |
| parents | c0e058633d9a |
| children | 13b8d47119ad |
comparison
equal
deleted
inserted
replaced
| 9228:e2e2aa76ea31 | 9229:1338b84c0566 |
|---|---|
| 39 end | 39 end |
| 40 end | 40 end |
| 41 | 41 |
| 42 module:hook("iq-get/host/jabber:iq:version:query", function(event) | 42 module:hook("iq-get/host/jabber:iq:version:query", function(event) |
| 43 local stanza = event.stanza; | 43 local stanza = event.stanza; |
| 44 if stanza.attr.to == module.host then | 44 event.origin.send(st.reply(stanza):add_child(query)); |
| 45 event.origin.send(st.reply(stanza):add_child(query)); | 45 return true; |
| 46 return true; | |
| 47 end | |
| 48 end); | 46 end); |
