aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-11-25 20:46:55 +0100
committerKim Alvefur <zash@zash.se>2019-11-25 20:46:55 +0100
commit11095184a53cc144e37560b7bbbf4de19ce669c7 (patch)
tree09b44781b668b0bdc6ec729d5979680a65ce0839 /util
parentb340e5e4628e2f5c136fe1f4300821d89ed4cb94 (diff)
downloadprosody-11095184a53cc144e37560b7bbbf4de19ce669c7.tar.gz
prosody-11095184a53cc144e37560b7bbbf4de19ce669c7.zip
util.stanza: Remove redundant check for attrs
A stanza can't not have attrs if created the correct way
Diffstat (limited to 'util')
-rw-r--r--util/stanza.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/stanza.lua b/util/stanza.lua
index f46d5b30..919d983c 100644
--- a/util/stanza.lua
+++ b/util/stanza.lua
@@ -438,7 +438,7 @@ local function reply(orig)
error("bad argument to reply: expected stanza, got "..type(orig));
end
return new_stanza(orig.name,
- orig.attr and {
+ {
to = orig.attr.from,
from = orig.attr.to,
id = orig.attr.id,