Software /
code /
prosody
Diff
util/stanza.lua @ 8894:7273fb6af831
util.stanza: Remove redundant check from :text now done in :add_direct_child
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 08 Jun 2018 17:44:44 +0200 |
parent | 8890:3490bc478804 |
child | 8999:a2a4c225a3f8 |
line wrap: on
line diff
--- a/util/stanza.lua Fri Jun 08 16:30:46 2018 +0100 +++ b/util/stanza.lua Fri Jun 08 17:44:44 2018 +0200 @@ -116,7 +116,6 @@ function stanza_mt:text(text) if text ~= nil and text ~= "" then - check_text(text, "text"); local last_add = self.last_add; (last_add and last_add[#last_add] or self):add_direct_child(text); end