diff options
author | Kim Alvefur <zash@zash.se> | 2018-06-08 17:04:47 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-06-08 17:04:47 +0200 |
commit | beac6ef1ea1d9fa358fdc60527952cec1a8f26c7 (patch) | |
tree | 07f2d1029978cb4d7885b2b3476e7569014247cc /util | |
parent | fd873fa69344b42bdd648ea6115f1856ca738eb1 (diff) | |
download | prosody-beac6ef1ea1d9fa358fdc60527952cec1a8f26c7.tar.gz prosody-beac6ef1ea1d9fa358fdc60527952cec1a8f26c7.zip |
util.stanza: Verify that child tags added are really stanzas (closes #1165)
Diffstat (limited to 'util')
-rw-r--r-- | util/stanza.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/stanza.lua b/util/stanza.lua index 4f91d5e9..6453be48 100644 --- a/util/stanza.lua +++ b/util/stanza.lua @@ -135,7 +135,7 @@ function stanza_mt:reset() end function stanza_mt:add_direct_child(child) - if type(child) == "table" then + if is_stanza(child) then t_insert(self.tags, child); end t_insert(self, child); |