Software /
code /
prosody
Diff
util/stanza.lua @ 8382:e5d00bf4a4d5
util: Various minor changes to please [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 10 Nov 2017 05:42:32 +0100 |
parent | 7758:2b305ec8c146 |
child | 8520:e959bc51de75 |
line wrap: on
line diff
--- a/util/stanza.lua Fri Nov 10 05:34:29 2017 +0100 +++ b/util/stanza.lua Fri Nov 10 05:42:32 2017 +0100 @@ -367,7 +367,13 @@ end local function reply(orig) - return new_stanza(orig.name, orig.attr and { to = orig.attr.from, from = orig.attr.to, id = orig.attr.id, type = ((orig.name == "iq" and "result") or orig.attr.type) }); + return new_stanza(orig.name, + orig.attr and { + to = orig.attr.from, + from = orig.attr.to, + id = orig.attr.id, + type = ((orig.name == "iq" and "result") or orig.attr.type) + }); end local xmpp_stanzas_attr = { xmlns = xmlns_stanzas };