aboutsummaryrefslogtreecommitdiffstats
path: root/util/stanza.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-11-10 05:42:32 +0100
committerKim Alvefur <zash@zash.se>2017-11-10 05:42:32 +0100
commit11b00845512b6af26000bd40dbf9f349f8886535 (patch)
tree9186c5db947b241b5590afab18bd6e720f95046a /util/stanza.lua
parent599acace643b98ea99f64b2544591e65caa9c533 (diff)
downloadprosody-11b00845512b6af26000bd40dbf9f349f8886535.tar.gz
prosody-11b00845512b6af26000bd40dbf9f349f8886535.zip
util: Various minor changes to please [luacheck]
Diffstat (limited to 'util/stanza.lua')
-rw-r--r--util/stanza.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/util/stanza.lua b/util/stanza.lua
index 651c1973..8dcbe1d2 100644
--- a/util/stanza.lua
+++ b/util/stanza.lua
@@ -367,7 +367,13 @@ local function iq(attr)
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 };